Switch case not accepting 'is among' condition
Posted: Mon May 11, 2020 2:23 am
Just curious why the case statement is rejected in the IDE with
Expression: double binary operator near is
I realise I could have put this which works fine, however, just interested in why first switch is not accepted in the IDE
Expression: double binary operator near is
Code: Select all
switch tValue
case is among the words "one two three"
# .. do something
break
default
# do something else
break
end switch
Code: Select all
switch
case tValue is among the words "one two three"
# .. do something
break
default
# do something else
break
end switch