User Tools

Site Tools


org.gramar.base:tag.if

if Tag

The if tag Evaluates an XPath expression and processes the tag content if the value is true.

Attribute Kind Required Purpose
test string yes An XPath expression to be resolved as a boolean value. The contents of the if tag are processed only if the value is true.
var string no A variable name to be associated with the result of the XPath expression. Useful for “If a node exists then process it” behavior.

Full Form

<c:if test=“” var=“” >

Usage and Samples

Return to index

org.gramar.base/tag.if.txt · Last modified: 2016/06/27 20:35 (external edit)