Aller au contenu

Messages recommandés

Posté(e)

 

DECLARATIONS (Conditions/Triggers)

{
    operator = "any",
    conditions = {
        -- input1
        {
            id = 000,
            isTrigger = true,
            operator = "anyValue",
            property = "input1",
            type = "device"
        },
        -- input2
        {
            id = 000,
            isTrigger = true,
            operator = "anyValue",
            property = "input2",
            type = "device"
        }
    }  
}

 

ACTIONS

-- input1
-- input2

local trigger = sourceTrigger
print("property:"..trigger.property)
print("id:"..trigger.id)
print("type:"..trigger.type)
print("value:"..tostring(trigger.value))

 

 

  • Like 1
Posté(e)

Mise à jour de la déclaration suite à l'introduction de l'opérateur "anyValue" avec la version 5.030.45

  • Thanks 1
×
×
  • Créer...