I am trying to write a spinet with if and else statements. However, when I try to load my page I am getting an error. An example of my code is below. The idea is to have two snippets, the first of which ends after if($var == ‘Whatever’):
How can I do this?
<?php if($var == 'Whatever'): else: if($var == 'Something Else'): endif; endif; ?>