Reserved Words and Expressions : Expressions : Trigger Expressions : Condition Expressions : Data-Items and Data Types Used in Condition Expressions

Data-Items and Data Types Used in Condition Expressions

The following operators are applicable to strings, arrays and bit-array data-items, and to user-defined types that are defined as string, array or bit-array. The result is a constant integer.

 
Length of array, bit-array, or string A (data-item or user-defined type)
Left index of array or bit-array A (data-item or user-defined type)
Right index of array or bit-array A (data-item or user-defined type)

The following operator is applicable to queues:

 

The following operators are applicable to integers and reals, and to user-defined types that are defined as integer or real.

 
Data-Item Expression

The tmin and tmax operators accept one parameter, the name of the data-item or data-type, and return the defined minimum or maximum value. When the value is not defined, the operators return OUT_OF_RANGE.

Note the following limitations for tmin and tmax:

You cannot use these operators on generic activity-chart or generic statechart formal parameters, or within subroutine implementations (action language, truth table, or procedural statechart).
The analysis tools do not support dynamic evaluation of expressions with the these operators. Specifically, the following functions do not support the operators:
Because the operators are not considered as “usage” of data, a data-item used only inside the tmin and tmax operators will not be included in the simulation scope.