Expression Tag / if condition third tag

case(
    binEnc({tag1}, {tag2}, {tag3}),
    1, "Tag1 is positive.",
    2, "Tag2 is positive.",
    3, "Tag1 and 2 are positive.",
    4, "Tag3 is positive.",
    5, "Tag1 and 3 are positive.",
    6, "Tag2 and 3 are positive.",
    7, "Tag1, 2 and 3 are positive.",
    "No tag is positive."
)

https://docs.inductiveautomation.com/display/DOC81/binEnc

https://docs.inductiveautomation.com/display/DOC81/case

See also, Wiki - how to post code on this forum

3 Likes