Hi all!
Try my new SmartComponent “LogicExpressionComparer” which allows you to build some text-based logic and evaluate SC properties.
Description:
Properties:
IF (String) - Evaluates boolean and logic expressions.
Supports: Parantheses, AND, OR, XOR, <=, >= ==, !=, >, <
Numeric properties are automatically added for other identifiers.
Only evaluate math when IF is true (Boolean)
Math Expression (String) - Expression to evaluate.
Supports +, -, *, /, % (reminder), ^ (power), sin, cos, tan, asin, acos, atan, atan2, sqrt, abs, pi.
Numeric properties are automatically added for other identifiers.
Result IF (String) - Contains the result of the evaluation (true/false)
Result Math Expression (Double) - Contains the result of the evaluation.
Outputs:
Execute IF True (Digital) - Pulses high when IF evaluates true.
Example:
It can be found in RobotApps or RobotStudio add-ins tab.
https://robotapps.robotstudio.com/Details.aspx?fileId=3c75eafe-ac60-4922-9db6-48b474ced943
(16-08-01) uploaded a new version LogicExpressionComparer_v2 where custom properties may not start with a number and may not have the same name as the standard properties. Fixed a bug with parantheses and changed some names.
Added an output signal which will stay set as long as IF is TRUE.
If you have any suggestions for improvments or found any bugs, you may report them in this thread.
/Pavel
