Template Variables: Difference between revisions

Jump to navigation Jump to search
Line 1,491: Line 1,491:


You can use IF variables inside other IF variables to create complex logic but the internal IF: must be processed before the external IF
You can use IF variables inside other IF variables to create complex logic but the internal IF: must be processed before the external IF
There are special versions of each IF constructed with double :: and || separators like [IF=::this::this::same||different]
There are special versions of each IF constructed with ^ and ~ separators like [IF=^this^this^same~different]
All the double separator IF's are processed first so should be used as the internal IF wherever required.
The special versions are processed first so should be used as the internal IF so it's result can be processed by the outer if.
The special versions can also be used if you expect : or | characters within your data.


IF's are processed in the following order.
IF's are processed in the following order.
i.e. all the [IF=:: will be processed first, then all the [IFIN:: etc.  
i.e. all the [IF=^ will be processed first, then all the [IFIN^ etc.  


[IF=::
[IF=^
[IFIN::
[IFIN^
[IFLIKE::
[IFLIKE^
[IF>::
[IF>^
[IF>=::
[IF>=^
[IF<::
[IF<^
[IF<=::
[IF<=^
[IFBETWEEN::
[IFBETWEEN^
[IF=:
[IF=:
[IFIN:
[IFIN: