IfOne
(Engine-Level Function)
Description: | Check for an If One Condition. This function checks for an infinite loop in an action script and returns the value of the location. |
Warning |
This statement should be used by advanced users only. In nearly every instance, it is faster and easier to identify an If One condition using the Source Debugger. |
Returns: | Module |
Usage: | Script only. |
Function Groups: | Logic Control |
Related to: | Ternary Operator (IfElse) | Cond | Execute | IfElse |
Format: | IfOne() |
Parameters: |
None |
Comments: | Check for an If 1 (If TRUE) Condition. This function is used for debugging VTScada applications and returns the module, state and statement value of the If statement that did not switch states, and the predicate condition remain TRUE after the associated script block executed, resulting in the script block executing again repeatedly. Symptoms of an If 1 condition are high CPU and slow responsiveness. |
Example of an If-one:
If X; [ Y = X; ]
where X and Y are defined and X is set to TRUE.