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?
Thank you for your quick reply. I think I found the problem with my snippet was twofold.
First, like you said, my syntax was off. Second, I was trying to echo HTML from within my snippet. Below is my final, working code. Thanks again