Under construction - work in progress

AND and OR conditions

For our projects we needed more than the standard consitions in flexform, so we added AND and OR conditions, in order to extend evaluations.

Usage is very simple:

This is tipical condition format:

<displayCond>FIELD:elemType:=:1</displayCond>

AND and OR may extend the conditions simply adding :AND: or :OR: between two consecutive evaluations:

<displayCond>FIELD:elemType:=:1:AND:FIELD:customConfiguration:=:1</displayCond>

or

<displayCond>FIELD:elemType:=:1:OR:FIELD:elemType:=:2</displayCond>

More AND and OR may be used in same line.

AND and OR will respect the basic precedence rules:
A AND B OR C AND D ==> (A AND B) OR (C AND D)
A OR B AND C AND D AND E AND F ==> A OR (B AND C AND D AND E AND F)
A OR B AND C OR D ==> A OR (B AND C) OR D