A little-known trick you can use in games is to use the EQV operator to test whether two expressions are equivalent. For example, suppose you have two monsters and you need to determine if they should fight based on their hit-point values. You can use the following technique to determine if they should fight.
If (monster1_HP >= HP_threshold) EQV (monster2_HP >= HP_threshold) then Fight Else Don't Fight End If
By using this technique you have condensed a multi-level If ladder into a single statement.