Otherwise, it will go on to the next command after the braces. If this is true, it executes the statement inside the braces, and then goes on. If not, it will go straight to the print statement after the braces. Gas is expensive. Gas is expensive.
Gas is expensive.
If you want to check for a couple of conditions, you can use elsif to do another check and leave the else code as a last resort. You can have as many elsif statements as you want, but keep them between the if and the else statements. Also, note the extra parentheses, they separate the condition from the comparisons within it. Gas is expensive. Gas is expensive.