if condition1 or condition2 or condition3 then...
Posted: Sun Jun 15, 2014 8:48 pm
Hi Guys,
Is there a neat way of writing if with two or statements? I'm sure I can write nested ifs or a switch/case, but is there a more succinct way of writing this with an if statement?
Thanks
Jalz
Thanks
Is there a neat way of writing if with two or statements? I'm sure I can write nested ifs or a switch/case, but is there a more succinct way of writing this with an if statement?
Thanks
Jalz
Code: Select all
put the long id of control x into tLong
if (tLong contains "field" AND tLong contains "group") OR
(tLong contains "button" AND tLong contains "group") OR
(tLong contains "graphic" AND tLong contains "group")
then
//do something
else
// do something else
end if