Next: Language Modules for Up: The Language Previous: Constants

### Variables

The commands

           CREATE VARIABLE N
           CREATE VARIABLE C
           CREATE VARIABLE T

serve to create a number variable, co-ordinate variable or text variable on the active part. The assigning of value may either contain a constant value of a formula of the respective type.

A formula is always saved in a variable. For this purpose it is not necessary to activate rule 1 (constructional constraints are saved).

The commands

           MODIFY VARIABLE N , C , T

serve to modify the value of the variable.

If the named variable does not define another object (i.e. does not appear in another formula), these commands may also serve to modify the type of the variable.

With the command

           MODIFY VARIABLE N xxx ; OFFSET=1 !

the content of the variable xxx is increased by 1.

Thus, number variables can be used as loop indexes, for example.

If the value of the variable is increased several times within a command, follow-up simulations are possible:

           MODIFY VARIABLE xxx ; OFFSET = 1 ; N = 100 !