Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple case if statement
#2
Code:
Copy      Help
sel x
,case [1,5,17] do this
or
Code:
Copy      Help
sel s
,case ["string1","..."] do this

The sel-case works with integers or strings, but only with constants. For variables, use if:

Code:
Copy      Help
if x=a or x=b or x=c
,do this


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)