#

# LogiView

## How to Add Functions and Commands Using the Syntax Assistant

| ### What to do:
| As a prerequisite for this example, you must have added a comment line as described in "How to add functions and commands" and a function as described in "How to add functions and commands using the Syntax Assistant".
| Enter the following values in the corresponding fields:
ID | Line | Comment | Condition/Action | R01 | R02 | R03 | ELSE
B | 10 |  | DOCU_INT_1== | 1 | 2 | 3 |
A | 20 |  | put(rnd(23.2641758,2)) | no | yes | no | no
A | 30 |  | put(rnd(23.2641758,3)) | no | no | yes | no
A | 40 |  | put("Please enter a number between 1 and 3!") | no | no | no | yes
| Lines are automatically sorted when the procedure is reopened. Additionally, separator lines are inserted between comment, condition, and action lines and an empty rule column is added in front of ELSE rules.