The following two examples are two different ways to write the same thing, one using a series of if statements, and the other using the switch statement:
Prvi z uporabo serije if stavkov in drugi z uporabo switch stavka: