ResQty
Entity-Specific System Function
The ResQty function counts and returns the specified Resource's units that the current Entity owns. ResQty can be used to determine the time necessary to process an Entity based on the Entity owned Resource count.
Syntax
ResQty({<resource name>})
Example
If ResQty(Res1) > 5 Then
{
Free 5 Res1
}
Parameters
({<resource name>})
The Resource name to check for. If no Resource name is specified, ProModel counts and returns all Entity owned Resource types.
Remarks
ResQty is valid in Entity speed fields, traveling-time fields, resource fields, operation logic, routing fields, arrival logic, debug user-condition fields, and move logic.
This function returns an integer.