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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -