14.20 Command: If
14.20 Command: If
An If...Else command construction changes the robot’s behavior based on sensor inputs or variable
values. Use the Expression Editor to describe the condition under which the robot follows the
statements of this If command. If the condition is evaluated as True, the statements within this If
command are executed.
An If command can have several ElseIf statements that can be added and removed using the Add
ElseIf and the Remove ElseIf buttons. However, an If command can have only one Else statement.
Note: You can select the Check expression continuously checkbox to allow the conditions of the
If command and ElseIf statements to be evaluated while the contained lines are executed. If an
expression within the If command is evaluated as False, the ElseIf or Else statements are followed.
Version 3.10
Copyright © 2009–2019 by Universal Robots A/S. All rights reserved.
II-97 CB3