Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to implement parity check in If snippet?
I'm trying to make a different output depending on whether idx is even or not.
In the chunk I use the If snippet
[[!If?
&subject=`[[+idx]] % 2`
&operator=`EQ`
&operand=`0`
&then=`Это чётное`
&else=`Это не чётное`
]]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question