omron — If

Appendix: Built-in Scripting Language Logical functions These functions are used to perform logical operations (e.g., if/then, true/false) on tags and expressions. False Determines whether the specified tag or expression is logically false. Syntax False( TagOrExpression ) TagOrExpression Tag or expression to be used in the function. Returned value Tip: You may find this function useful if you need to return an actual value of 0 when the expression returns some value other than 0. Examples If Determines whether the contents of numExpression are logically true, then returns the value of numThen or optNumElse accordingly.

Syntax If( numExpression , numThen , optNumElse ) numExpression Tag or expression used as the condition in the function. numThen optNumElse Tag or expression used if the condition is logically true. Optional tag or expression used if the condition is logically false. Returned value Page 460 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client False Logical Synchronous Supported Supported Supported 0 If the tag or expression is not logically false. 1 If the tag or expression is logically false.

Tag Name Expression Tag False( 1 ) // Returned value = 0 Tag False( 5 Function Group Execution Windows Embedded Thin Client If Logical Synchronous Supported Supported Supported numThen If the numExpression is logically true. optNumElse If the numExpression is logically false. No value returned If the numExpression is logically false and there is no optNumElse in the function.