Admissible operands in expressions
The following types of operands may be used in expressions, that determine the value of the object of Eval tag type when configuring an object of Event type:
Operand type | Operand syntax |
---|---|
Object name | Object name including prefix and suffix. Example: M.TOut1; P.Speed; U.Transporter1Start |
Numeric constant | Integer or real constants. Real constants must contain the decimal point. Example: 29; 5.25 |
System symbolic constant | The symbol “@” is placed before their names in expressions. Example: @TRUE; @Crash |
Object value attribute | They are shown behind the object name, separated from the name by the backslash "\". Example: P.PRESSURE02\TIM; M.POUT\FLA |
Function | Function syntax is as follows: %NAME(arg1,arg2...argN),
%SQRT(X2); %MAXR(T1,T2,T3) |
Value array item | ArrayName[index]
|
Structure item determined by serial column number | Structure[index expression]^_columnIndex
Example: INT _colIdx _colIdx := 2 SV.Persons[1]^_colIdx:=7 |
Structure item determined by column name | Object[index expression]^ItemName
SV.Persons[2]^Name |
0 komentárov