Hi Andy,
thanks for testing.
Sorry, after so much hours looking for error in my if/else stuf I posted wrong code
This one should be correct (I hope so).
<%set bar = '1'%>
<%if foo eq '1' and bar eq '1'%>
foo bar, eq, NO extra spaces after and
<%endif%>
foo bar, eq, NO extra spaces after and
<%if foo eq '1' and bar eq '1'%>
foo bar, eq, extra spaces after and
<%endif%>
- NOTHING
<%if foo == '1' and bar == '1'%>
foo bar, ==, NO extra spaces after and
<%endif%>
foo bar, ==, NO extra spaces after and
<%if foo == '1' and bar == '1'%>
foo bar, ==, extra spaces after and
<%endif%>
foo bar, ==, extra spaces after and
I noticed this error while trying to make my code more human readable, something like:
foo eq '1'
and
bar eq '1'
and
lots of other stuf...
%>
thanks for testing.
Sorry, after so much hours looking for error in my if/else stuf I posted wrong code
This one should be correct (I hope so).
Code:
<%set foo = '1'%> <%set bar = '1'%>
<%if foo eq '1' and bar eq '1'%>
foo bar, eq, NO extra spaces after and
<%endif%>
foo bar, eq, NO extra spaces after and
<%if foo eq '1' and bar eq '1'%>
foo bar, eq, extra spaces after and
<%endif%>
- NOTHING
<%if foo == '1' and bar == '1'%>
foo bar, ==, NO extra spaces after and
<%endif%>
foo bar, ==, NO extra spaces after and
<%if foo == '1' and bar == '1'%>
foo bar, ==, extra spaces after and
<%endif%>
foo bar, ==, extra spaces after and
I noticed this error while trying to make my code more human readable, something like:
Code:
<%if foo eq '1'
and
bar eq '1'
and
lots of other stuf...
%>