0

Trigger based on multiple fields

Hi, I am trying to trigger based on inputs from multiple fields, this is my effort - any advice?

country := if CHINA = 1 and EU = 0 and GB = 0 and US = 0 then
text("true")
else
text("false")
end

2 replies

null
    • robertdebruyn
    • 6 yrs ago
    • Reported - view

    Hello:
    that kind of conditions does not work for me either.
    I have solved it with:

    If CHINA = 1 then

    if EU = 0 then

    if GB = 0 then

    if US = 0 then

    text("True")

    else("false")

    end

    • wynand
    • 6 yrs ago
    • Reported - view

    Thanks Antonio for pointing me in right direction, this worked for me in the end. Just frustrating when changing one field you have to void and redo all the felds to effect new result.

    country := if EU = 1 then
    text("false")
    else
    if GB = 1 then
    text("false")
    else
    if US = 1 then
    text("false")
    else
    if CHINA = 1 then text("true") else text("false") end
    end
    end
    end

Content aside

  • 6 yrs agoLast active
  • 2Replies
  • 1733Views