<if> element

Appears in: many

Conditionally renders its body, if a supplied OGNL expression is true.

Figure C.4. <if> Attributes

NameTypeRequired ?Default ValueDescription
expressionstringyes The OGNL expression to be evaluated.

Figure C.5. <if> Elements


  (text | <foreach> | <if> | <if-not>) *