Expression Editor

Description

The Expression tab enables you to insert an expression, which should be a valid URScript and evaluates to the correct type. An expression in an If node evaluates to a Boolean. Whereas a String type requires enclosing quotes to be used. Furthermore, the Expression tab allows you to easily insert a variable into the expression.

 

Example use of Expression tab

Create a program loop counter.

  1. In the main navigation, tap the Program icon.

  2. Tap the add icon.

  3. Tap the Assignment node command. See Assignment.

  4. Select Integer in the Value Type field.

  5. Tap the Expression field.

     

     

  6. Tap the pop-up Expression tab, and the Expression Editor appears. Here you can set the expression to loop_counter +1 and Confirm.

     

 

Expression Editor

In the Expression Editor, you can find shortcuts for inserting functions, IOs, and logic operators into expressions.

On the left column, you see the Quick Access section that allows you to easily insert an Input, Output, Variable, or Built-in Function at the current cursor position.

On the right column are found buttons to insert common logic operators and values, such as AND, OR, NOT, TRUE, FALSE. This functionality has been added to every tabbed into dialog, as well as to few node fields that previously only accepted a string, such as the If node.