Example: Logical operators

For these examples, tag_1 = 5 and tag_2 = 7.
(tag_1 < tag_2) AND (tag_1 == 5)
returns a 1 because both statements are true
tag_1 && tag_2
returns a 1 because both tag_1 and tag_2 are non-zero (true)
(tag_1 > tag_2) OR (tag_1 == 5)
returns a value of 1 since tag_1 = 5 is true
NOT(tag_1 < tag_2)
tag_1 < tag_2 is true and would return a 1 but the NOT operator reverses the logical value, so 0 is returned
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal