| |||||||
FRAMES NO FRAMES |
<pt:logic.collectionlength pt:data="testcollection" pt:key="length"/>
<pt:logic.intexpr pt:expr="($length) > 5" pt:key="greater5"/>
<pt:logic.intexpr pt:expr="($length) < 10" pt:key="less10"/>
<pt:logic.boolexpr pt:expr="($greater5) && ($less10)" pt:key="boolvalue"/>
<pt:logic.if pt:expr="$boolvalue">
<pt:logic.iftrue>
This is displayed if expr evaluates to true.
</pt:logic.iftrue>
<pt:logic.iffalse>
This is displayed if expr evaluates to false.
</pt:logic.iffalse>
</pt:logic.if>
Tag Information | |
Tag Name | boolexpr |
Attributes | ||||
Name | Type | Required | Default Value | Description |
expr | string | true | null | A boolean value or a tag variable, followed by a boolean comparator, and then another boolean value or tag variable. Spaces can be added around the comparator for legibility if desired. The tag variables must evaluate to an boolean and be in $ attribute notation surrounded by parentheses. The following operators are allowed: '&&', '||', '==', and '!='. |
key | string | true | null | The key used to store the result in memory. |
scope | string | false | portlet request | The scope used to store the result in memory. See the Logic tag library description for details about valid scope arguments. |
| |||||||
FRAMES NO FRAMES |