Conditional statement – Hudson Robotics SoftLinx 5.0 User Manual
Page 29
29
Conditional Statement
Conditional statements are used when a decision to run only one set of specific steps is necessary.
Based on the result of the current condition defined, one and only one of the two branches will execute its
set of steps. Users can define a condition using the setup screen below:
Users must write a function or statement which must evaluate to a "True" or "False" response, such as the
example above, Crane.Speed = 50. If the conditional statement the user selects turns out to be true (If
Crane.Speed is 50, then the statement is true), then the left branch will execute its steps. If the statement
is false (If Crane.Speed is 40, then the statement is false), the right branch will execute.
Note that any protocol-defined or valid interface variable can be used in the statement. SoftLinx will detect
if the function or statement is able to evaluate to a True or False response.