Statements

Statements are used to provide an instruction, such as assign a variable. They can contain expressions (which are calculations). The basic format for a statement is:

<variable>:= <expression>;

Where the <expression> is a calculation that produces a new value for <variable> when the statement is evaluated.

Example:

This statement defines the value of a variable named 'FlowRate'. It defines a constant value (also known as a literal value):

FlowRate:= 64.5;

The next statement defines a basic expression that can be used to increase a value by a defined amount:

Count:= Count + 1;

The value for the Count variable increases by 1 each time the statement is evaluated.

These are simple examples of statements. You can create much more complicated statements, including statements with nested expressions.


Disclaimer

Geo SCADA Expert 2020