Programming Reference / Logic / Boolean Test




Item Name Description
A Test Operand Any value, variable or function that evaluates to Boolean TRUE or Boolean FALSE
B TRUE Operation Value returned as an operand if the result of Ⓐ is Boolean TRUE
C FALSE Operation Value returned as an operand if the result of Ⓐ is Boolean FALSE

Example

For this example, we want to check the Local Digital Inputs 1 and 2. If both of these inputs are ON, then we want to take the value of a variable we created named “MyPreset” and put its value into a variable we created named “MyResult”. If either of these inputs are OFF, we want to put a constant value of 7500 into our “MyResult” variable.

Item Group Details
A Logic Boolean Test
B Variables Set Variable
C Logic AND OR
D I/O Get Input State
E Variables Get Variable
F Variables Get Value