#

# 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.
| Change to Insert mode with the button .
| Click the Type field.
| Click the button . The selection menu is opened.
| Select the A -> Action entry.
| Enter 10 in the Line field.
| Click the Condition/Action (Cond/Act) field.
| Click the button to call up the syntax assistant.
| Select Quick info > Input/output ....
| A selection window with all input / output functions and commands is opened.
| Select the put({EXPR_LIST}) command.
| Click the button to confirm your selection.
| A syntactically correct function is added. Instead of the not yet defined variables and options description fields are displayed and must be replaced.
| Explanation Fields
| Click the explanation field {EXPR_LIST} and then click the button to call up the Syntax Assistant. A menu with all syntactically correct entry options is opened.
| Select {EXPR} > Numeric expression > Numeric functions ...
| A selection mask is opened.
| Select the rnd({NUM_EXPR},{1|2|3|4|5|6}) command and click the button to confirm your selection.
| Click the explanation field {NUM_EXPR} and then click the button to call up the Syntax Assistant. A menu with all entry options is opened.
| Select the Integer or Float Value option from this menu.
| Replace the three points with 23.2641758.
| Click the '1' in the explanation field {1|2|3|4|5|6} and then click the button to call up the Syntax Assistant. All unmarked options are deleted.
| If the wrong option has been selected, click the button , to undo the changes.
| Enter yes in the R 01 field.
| Click the button . A selection menu is opened.
| Select Insert (empty) rule to insert an empty column.
| Enter no under R 02, R 03 and ELSE .
| To save the entry click the button .
| The list should now look as follows:
| The rule column 4 (R 04) has been added automatically since a leading rule column must stand in front of any ELSE column.
| Additional Steps