This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

###IF_[FIELDNAME]=[value]###

The content of this subpart is only shown if the condition evaluates true. You can use spaces if you want. Values must not quoted. And both subpart marker must be identical.

Operators for the values are:

= equals
> greater than
>= greater than or equal
< less than
<= less than or equal
^= begins with
$= ends with
!= not equal
~= contains

 

Following operators can be used to compare values:||, &&

Have a look at the example code to find out how to use it.

Version added

1.0.0

Example code

<!-- ###IF_field = value### -->
    Show this
<!-- ###IF_field = value### -->

<!-- ###IF_field### -->
    This Example equals ISSET
<!-- ###IF_field### -->

Examples with operators and array values

<!-- ###IF_field=value||field2=value### -->
    Show this
<!-- ###IF_field=value||field2=value### -->

<!-- ###IF_field|sub = value || field2|sub|sub = value && field3|sub = value### -->
    Show this
<!-- ###IF_field|sub = value || field2|sub|sub = value && field3|sub = value### -->