The if and unless Attributes

The if and unless attributes are used to control whether to create a component. In the following examples, both labels are created only if the request has a parameter called vote.

<label value="Vote 1" if="${param.vote}"/>
<label value="Vote 2" unless="${!param.vote}"/>

If both attributes are specified, the component won't be created unless they are both evaluated to true.