Ok, I have the following HTML code (no PHP):
<IF anonymous>Anonymous User<ELSE>Registred User</IF>
There is actually more Code but I cut that out for you to have a better view. The principle is to show Anonymous User if a condition is true or show Registred user when the condition is false. This is evaluated before the file is printed on screen. I have used the following regular expression for that purpose:
/< if +anonymous >(.)< else >(.)< /if >/is
But this only works with one IF statement per file (because the regexp looks for the first and the last if in the file). Is it possible to check if between the <if ....> and the <else> is another <if>?
Hope you understand me 🙂