omron — True

Appendix: Built-in Scripting Language Notes The numExpression parameter can be a combination of logic statements ( AND , OR , and NOT ). For example, If(TagA>TagB AND TagA=10,1,0) . The numThen parameter can be another function, including the If() function. Therefore, you can use If() functions in cascade. For example, if(TagA>TagB,If(TagA . Examples Toggle Returns the toggled value from the contents of numValue tag. Syntax Toggle( numValue ) numValue Boolean tag containing the value to be toggled. Returned value Numerical result (0 or 1) of the value to be toggled. Notes This function does not actually change the value of the tag, but it can be used in a command or operation that does.

Examples True Determines whether the specified tag or expression is logically true. Syntax True( TagOrExpression ) TagOrExpression Tag or expression to be used in the function. Returned value InduSoft Web Studio Page 461 Tag Name Expression Tag If( 5 > 4,10, 6 ) // Returned value = 10 Tag If( 5 Tag If( 3 = 9, 67 ) // No Returned value.

(Tag retains previous value.) Function Group Execution Windows Embedded Thin Client Toggle Logical Synchronous Supported Supported Supported Tag Name Expression Tag Toggle( MyBoolTag ) // Returned value = 1 if MyBoolTag value equals 0, or 0 if MyBoolTag value equals 1 Tag Toggle( numValue ) // Returned value = toggled value of the number in the numValue tag Function Group Execution Windows Embedded Thin Client True Logical Synchronous Supported Supported Supported 0 If the tag or expression is not logically true. 1 If the tag or expression is logically true.