Logmanager documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Message has tag

This block is used to find out, if the message contains specific user tag. This block returns boolean value true or false.

Block XML representation

XML representation of message_has_tag block

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="message_has_tag">
    <field name="TAG">89cf8507-f7d5-400d-8679-0f24000676a1</field>
    <value name="VAR">
      <block type="message">
        <field name="OBJECT">meta</field>
      </block>
    </value>
  </block>
</xml>

Example of visual representation

Block "Message has tag"

Block “Message has tag”

Example of block usage

Example of use "Add message has tag" block

Example of use “Add message has tag” block

In the example the block is used to detect user tag “devices”. If the tag exists, key “device_tag” with boolean value “true” is added to the “item” dictionary.

User tag “devices” is marked only as ID in the field tags@id:Array[] in processing result.

Processed results

Result of the use "Message has tag" block

Result of the use “Message has tag” block