How to use "switch - case" when switch is null #729
Replies: 5 comments
-
Besides, can I use switch like this:
I tried but it doesn‘t work, It is a bug or design like this. |
Beta Was this translation helpful? Give feedback.
-
I thought I explained it well in the docs, but maybe not. |
Beta Was this translation helpful? Give feedback.
-
THANKS!! The skbee wiki hasn't been updated in a long time. Time to update it LOL. |
Beta Was this translation helpful? Give feedback.
-
Ok, here is a rough draft of switch cases. |
Beta Was this translation helpful? Give feedback.
-
GOOD! Shanebeee, you're the most responsive skript developer I've ever seen Make Skript Great Again! |
Beta Was this translation helpful? Give feedback.
-
For example, I have an arg,there are many "if else" in my old script
Now I can use :
switch arg-1:
case "edit":
case "reset":
.....
But I have no idea about how to express or "not set" in switch
I had tried like this, but it doesn't work:
case not set:
case null:
case (not set):
....
Beta Was this translation helpful? Give feedback.
All reactions