20,741
edits
m (→Conditionals) |
|||
Line 903: | Line 903: | ||
( a and do_something() ) or print("failed"); | ( a and do_something() ) or print("failed"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Using Hashs to map keys to functions == | |||
You can easily reduce the complexity of huge conditional (IF) statements, such as this one: | You can easily reduce the complexity of huge conditional (IF) statements, such as this one: |