Statements and Functions > Assignment Statement

Assignment Statement

Syntax samples

<variable, array element, or attribute> = <numeric expression>

Description

Assigns the value of a numeric expression to a designated variable, array element, or attribute.

Valid In

Any Logic

Example

Var1 = 300
Attr2 = Clock(hr) - Attr3

Please Note: If you assign an expression that evaluates to a real number to a variable, array, or attribute of type integer, the number truncates unless you use the ROUND() function.


© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com