if you use else it runs only when the original if and any elseif statements were never executed. endif says you are done with the if command. For each condition we print out some text. Note how we can glue bis of text together with +. On numbers that would do addition instead. str$ changes a number into a string. I hope that all makes sense.