This function directly executes a VBScript procedure when the value of a specified tag/expression becomes FALSE.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
RunGlobalProcedureOnFalse | Tags Database | Synchronous | Supported | Supported | Supported |
Value | Description |
---|---|
0 | Error |
1 | Success |
Once this function is called, it remains active until the runtime project is stopped. That means every time the tag/expression becomes FALSE, the procedure is executed. However, the procedure is executed only once when the tag/expression becomes FALSE; it is not continuously executed while the tag/expression is FALSE.
The procedure is executed on the Client. To execute a procedure on the Server, use the RunGlobalProcedureOnServer function.
RunGlobalProcedureOnFalse( "TagOnFalse", "UsingOnFalse" )