Well the question is self explanatory.
In PHP when do I use the if/endif notation instead of the standard if(something){} notation?
if/endif
if(something){}
Exa
Both methods are acceptable. Some people maintain that the alternative syntax (endif) is more legible in templates. IMHO, with a modern syntax coloring/highlighting error, that no longer holds true. Just pick a style and stick with it.