Antlers: modifier & logical operators in conditions

Hello!

Conditions with modifiers & logical operators fail, or the second condition is ignored. Is there something wrong with the syntax? (Statamic v3)

Fails:

{{ if index|mod:4 == 0 or index|mod:4 == 3 }}

Works:

{{ if index == 0 or index == 3 }}
or
{{ if index|mod:4 == 0 }}
{{ elseif index|mod:4 == 3 }}

Thanks!

>>>>>>> Unanswered <<<<<<<
8 Replies
2 Followers