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
    
21331 uses - Created 2007-10-21 01:17:34 - Last used 2024-08-07 09:15:10
Is this command broken? Tell Jon if you know how to fix it.