Show / Hide Table of Contents

Int


Local Variable Declaration Statement

The Int statement creates a local Variable of type Integer. A local Variable is similar to a normal Variable, but is only available within the Logic where it is defined. Use the Int statement to define test Variables for Logic loops or other Variables that are not global.

Syntax

Int <name1>{= <expression1>, <name2>= <expression2>...)

Syntax Examples

Int Count
Int Count = 1
Int Count = 1, Test = FreeCap(Loc2)

Parameters

<names>

An identifier for the local Variable. This identifier must be a valid name.

<expressions>

The Variable is initially assigned this value. This expression is evaluated every time the Int statement is encountered.

Parameters Examples

The following example creates a Local Variable when an Entity enters the Truck Location and then displays it.

Int LocalVar = 10

Int Example 1


Int Example 2

In This Article
Back to top Generated by DocFX