Announcement

Collapse
No announcement yet.

How to do an OR within a THEN Block

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to do an OR within a THEN Block

    Hello,

    I am trying to do an OR within the THEN condition block. Something like:

    WHEN
    Recurring Trigger
    THEN
    IF DeviceA = 100
    AND IF Device B = 200
    AND IF ( (Device C = Blue) OR (Device C = Green) )
    AND IF ( (Device D = Blue) OR (Device D = Green) )
    THEN
    Do Something
    THEN
    Some other condition block, etc.

    Thanks in advance for any help

    I tried EASYTRIGGER, but it only supports groups of Devices, not groups of values.

    #2
    There is no “OR” to Conditions at this time. It is planned for the future as I understand it.
    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

    Comment


      #3
      You could use easytrigger's A Device's Value is... This expression is true... with an expression like $$DVR:100:=10 or $$DVR:100=20 (where 100 is your device reference and 10 and 20 are blue and green values), but it's hard to read and won't warn you if the device is removed (until it fails).

      Comment


        #4
        Thank you the expression worked. I am having some challenges when there are several combined conditions, but I just need to debug.

        Thanks again!

        Comment

        Working...
        X