Blocks:if

Conditional block, the syntax is very similar to the php one, allowing || && and other php operators. Additional Dwoo operators and their equivalent php syntax are as follow :


 * eq → ==
 * neq or ne → !=
 * gte or ge → >=
 * lte or le → <=
 * gt → >
 * lt → <
 * mod → %
 * not → !
 * X is [not] div by Y → (X % Y) == 0
 * X is [not] even [by Y] → (X % 2) == 0 or ((X/Y) % 2) == 0
 * X is [not] odd [by Y] → (X % 2) != 0 or ((X/Y) % 2) != 0

Example : Output (hopefully) : if you don't see this, the world is coming to its end