Name | Choose |
Syntax | choose [<option>] [<cases>] |
Short Description | Chooses an option from the list of cases. |
Full Description | Chooses an option from the list of cases.
Intended to replace a long chain of simplistic if/else if or complicated script path selection systems. Simply input the selected option, and the system will automatically jump to the most relevant case input. Cases are given as a sub-set of commands inside the current command (see Usage for samples). Optionally, specify "default" in place of a case to give a result when all other cases fail to match. Cases must be static text. They may not contain tags. For multi-tag comparison, consider the IF command. Any one case line can have multiple values in it - each possible value should be its own argument (separated by spaces). |
Related Tags | None
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Group | queue |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/ChooseCommand.java#L26 |