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