The dollar sign will make the output a string, so you can get text output. Leave this out if you want a number to be received. IF condition THEN commands if true ELSE commands if false The condition is a comparison which can be an expression, basically it's what you want to use to determine the result.