Defining Logic > Statements > Local Variable

Local Variable

Creates a local variable of type IntegerAn integer number is a whole number ranging from -2,147,483,648 to 2,147,483,647. Integer values may not include commas. Therefore, the number 5,380 should be entered as 5380. or RealA real number is any number ranging from 1.7 X 10 -308 to 1.7 X 10 +308, including decimals. Real values may not include commas. As such, the number 5,380.5 should be entered as 5380.5. .

 

Local variables work much the same as attributes, except that they only are available within the logic that declares them. A new variable will be created for each entity that encounters LOCAL VARIABLE statement.

 

It is recommended you use local variables for the test variable in WHILE...DO loops.


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