#

# 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 DocuProcedure procedure must be defined as described in "How to Create a Logic Model " and "How to Create a Procedure".
| 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 DocuProcedure.
| Select the tab Logic with the left mouse button.
| The following example is taken from the description of the 'readln' command. "test.file" is created during the execution on the server side in the "tmp" directory and is subsequently deleted at the end of the operation. If the "tmp" directory does not exist or the file cannot not be opened, an error message is displayed.
| Change to Insert mode with the button .
| Enter 10 in the Line field.
| Click the Comment Line Flag (Com) field.
| Click the button . The selection menu is opened.
| Select the C -> Comment field.
| Enter the commentary text Create "test.file" in the Statement field.
| To save the entry click the button .
| The list should now look as follows:
| How to Add Functions and Commands Using the Syntax Assistant