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
Post a Comment