php - Smarty 3: if, mixed conditions & operators -



php - Smarty 3: if, mixed conditions & operators -

well... can tell me why works:

{if !$conta|contains:"word1" && ($product->id_category_default < 388 || $product->id_category_default > 475)}

and not:

{if (!$conta|contains:"word1" || !$conta|contains:"word2") && ($product->id_category_default < 388 || $product->id_category_default > 475)}

where syntax error?

try instead:

{if !($conta|contains:"word1" || $conta|contains:"word2") && ($product->id_category_default < 388 || $product->id_category_default > 475)}

php if-statement operators smarty condition

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -