Logical operators in Closure patterns

I play with Google Closure Templates and I can’t successfully compile some templates because it seems that the logical operators and "and or cannot be used inside the if tag (I tried both" & "and" and "and" || "and" or ") ... how can I write" complex "expressions, for example {if condition1 && condition2}:?

EDIT:

The following simple statement throws an exception:

{if 5> 2 && 2 == 2}

"Not all code is in Soy V2 syntax (the found tag {if 5> 2 & 2 == 2} is not in Soy V2 syntax)

+5
source share
1 answer

Solved! Closing pattern operators: " and " and " or " and strings must be wrapped in single quotes !

+15
source

All Articles