TRUE
Description: |
For use in expressions that perform Boolean logic. Using "TRUE" will make your code easier to read than using "1". |
Returns: |
With no parameters, returns the value, 1. If given a parameter, this function will return a 1 or 0 depending on whether the parameter evaluates to TRUE or FALSE. Always returns 0 if the parameter is Invalid. |
Usage:  |
Script or steady state. |
Function Groups: |
Logic Control |
Related to: |
FALSE |
Format:  |
TRUE[(TestExpr)] |
Parameters: |
|
TestExpr |
Optional. Any expression that evaluates to a 1 or 0 value. If no parameter is provided, then there is no need to include the parentheses. |
Comments: |
This function exists to make your code more readable. It is equivalent to |
PickValid(Cast(Parameter, 0) == 1, 0);
Trihedral and VTScada are registered trade marks of Trihedral Engineering Limited
© Trihedral Engineering Limited 1983- 2021 All rights reserved.