Show / Hide Table of Contents

Ent


Type Conversion Function

The Ent function converts a name-index number or integer to an Entity name. Use this function when a statement or function needs the Entity name whose name-index number is stored in an Attribute, Variable, or some other expression. You can also use Ent to vary the Entity that a statement references by using an expression for the name-index number.

Syntax

Ent(<entity name-index number>)

Examples

Send 10 Ent(Var1) TO Loc1
Display "Ent A has been combined with" $ Ent(Var1)

Parameters

(<entity name-index number>)

The Entity name-index number defined in your model to convert to an Entity name. This component may be an expression that allows the referenced Entity to change as the simulation progresses. Real numbers are treated as integers.

Remarks

When used in an expression expecting a string, ProModel converts the name-index number to the actual Entity name.

In This Article
Back to top Generated by DocFX