21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 961 Views |
-
IF statement with multiple OR generates parse error?

7 June 2009 at 9:15am Last edited: 7 June 2009 9:16am
Hi,
why does this:
<% if ApproveLink || SpamLink || HamLink || DeleteLink %>
generate a parse error and this:
<% if ApproveLink || SpamLink %>
does not?
thx Sunny
-
Re: IF statement with multiple OR generates parse error?

7 June 2009 at 3:27pm
The template engine does not currently support multiple expressions in 1 line. To achieve that you will need to make a wrapper PHP function to do the comparison or separate the or statements into multiple expressions
| 961 Views | ||
|
Page:
1
|
Go to Top |


