Combining [bit] of a Tag using expressions

Combining [bit] of a Tag using expressions

  • 16 May 2017 at 5:22 pm #23516
    ThomasIslera
    Participant

    Hi, I need to combine tag.bit to obtain a result. Example, I would like to visualize a symbol only when a logic combination of Tags is satisfied. I’ve seen the expression, but not clear how to do. Some ideas?

  • 19 May 2017 at 8:34 am #23604
    Moderator
    Moderator

    Hello,
    You can use the Expression field of the Opacity (visibility) dynamic animation of a symbol. then, using the expression editor, you can “mask” the bit of a the Reference Tag assigned to the symbol as follow:

    =BITAND([x],1) OR BITAND([x],8),

    This example will “mask” the bit nr. 1 and 8 of your reference tag.
    Other example: if you want to make the AND logic between two different variables:

    =AND([Variable001], [Variable002])

    In this case you will have the AND between Variable001 and Variable002

You must be logged in to reply to this topic.