#

# LogiView

## How to Add Functions and Commands

| ### What to do:
| A prerequisite for this example is that you have already declared the DOCU variables as described in "How to Declare Variables and Constants". Additionally, the DocuLogicModel and the DocuDT decision table must be defined as described in "How to Create a Logic Model" and "How to Create a Decision Table".
| Open the Logic Models/Procedures form from the Manager > Macro > LogiView > Logic Models menu or click the button .
| Switch to Query mode and search for the DocuDT.
| Select the tab Logic with the left mouse button.
| The following example is taken from the rnd command description. The structure design is very simple and in such a way as to allow only one execution of the example since the value of the DOCU_INT_1 variable can no longer be changed after the first program cycle.
| Change to Insert mode with the button .
| Click the Type field.
| Click the button . The selection menu is opened.
| Select the C -> Comment entry.
| Enter 10 in the Line field.
| Enter rnd command example as your commentary in the Condition/Action (Cond/Act) field.
| To save the entry click the button .
| The list should now look as follows:
| How to add Functions and Commands with the Syntax Assistant