Taglib documentation for tag mak:if#
Description#
Displays the body of the tag only if the MQL expression evaluates to true.
.
Attributes#
Name | Required | Runtime expression | Description | Comments |
---|---|---|---|---|
test | true | false | MQL SELECT projection expression. It must be a test, resulting in a 'boolean' in SQL : 0 or 1.
Operators for the test expressions: =, <>, <, <=, >, >=
.![]() |
. ![]() |
Examples#
<mak:list from="copmany.Employee e" where="e.department.company=$company" orderBy="e.department, e.surname"> <mak:value expr="e.department"/> - <mak:value expr="e.surname"/>, <mak:value expr="e.name"/> <mak:if test="e.birthdate <> nil"> (born on <mak:value expr="e.birthdate" />) </mak:if> </mak:list>
