For many of the conditional tags, a second tag is included for testing whether the condition is false. If the condition is false, the tag's body is included.
To include a certain HTML if a condition is true, and a different HTML otherwise, you add a conditional tag to check if the condition is true, and then add the corresponding tag to check if the condition is false.
The following selects a style for an anchor if the current node is the context node, and a different style if it is not the context node:
<nav:ifNavNodeEqualsContextNavNode> <nav:navNodeAnchor navigationMethod="byURL" urlParameters="<%=urlParameters%>" anchorAttributes="class=\"dtnSelectedLink\""/> </nav:ifNavNodeEqualsContextNavNode> <nav:ifNotNavNodeEqualsContextNavNode> <nav:navNodeAnchor navigationMethod="byURL" urlParameters="<%=urlParameters%>" anchorAttributes="class=\"dtnNormalLink\""/> </nav:ifNotNavNodeEqualsContextNavNode>
The tags for checking if a condition is false are the same as the tags for checking if the condition is true, except that they start with ifNot instead of if .
The following is a list of tags for checking if a condition is false.
Tag |
Description |
---|---|
ifNotAnonymousUser |
Includes its body if the current user is not an anonymous user. For more information, see ifAnonymousUser . |
ifNotIsFirstIteration |
Includes its body if the current node is not the first node in the current iteration. For more information, see ifIsFirstIteration . |
ifNotHasMoreIterations |
Includes its body if the current node is the last node in the current iteration. For more information, see ifHasMoreIterations . |
ifNotNavNodeEqualsContextNavNode |
Includes its body if the current node is not the node that defines the highlighted/selected path in the navigation iViews. For more information, see ifNavNodeEqualsContextNavNode . |
ifNotNavNodeEqualsLaunchedNavNode |
Includes its body if the current node is not the node that was launched during the most recent navigation. For more information, see ifNavNodeEqualsLaunchedNavNode . |
IfNotNavNodeEqualsSelectedNavNode |
Includes its body if the current node is not the node that was selected by the user. For more information, see ifNavNodeEqualsSelectedNavNode . |
ifNotNavNodeHasChildren |
Includes its body if the current node has no children nodes. For more information, see ifNavNodeHasChildren . |
ifNotNavNodeIsFolder |
Includes its body if the current node is not a folder. For more information, see ifNavNodeIsFolder . |
ifNotNavNodeHasRelatedNavNodes |
Includes its body if the current node has no related navigation nodes ( Related Links ). For more information, see ifNavNodeHasChildren . |
ifNotNavNodeInSelectedPath |
Includes its body if the current node is not in the selected path. For more information, see ifNavNodeInSelectedPath |
ifNotNavNodeIsIView |
Includes its body if the current node is not an iView. For more information, see ifNavNodeIsIView . |
ifNotNavNodeIsLaunchableFolder |
Includes its body if the current node is not a launchable folder. For more information, see ifNavNodeIsLaunchableFolder . |
ifNotNavNodeIsPage |
Includes its body if the current node is not a page. For more information, see ifNavNodeIsPage . |
ifNotNavNodeVisualizationType |
Includes its body if the current node is not of the type specified by the equals attribute. For more information, see ifNavNodeVisualizationType . |