Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.

switch

(This command has been awarded a Yubnub Golden Egg)

http://jonathanaquino.com/switch.php?q=%s
A switch statement.


Example: switch tree | sky => blue, tree => green, sun => orange, * => white
Returns: green


You can use "*" to specify a default option.

Example: switch rock | sky => blue, tree => green, sun => orange, * => white
Returns: white
    
21243 uses - Created 2007-10-21 01:17:34 - Last used 2014-07-30 11:09:04