Show TOC Start of Content Area

Background documentation ifNot ...  Locate the document in its SAP Library structure

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.

Often, it is necessary to include HTML if a condition is true and to include different HTML if the condition is false. This is done by adding a conditional tag for testing if the condition is true, and then adding the corresponding tag for testing if the condition is false.

The following selects one style for an anchor if the current node is the launched node, and selects a different style if it is not the launched node:

<nav:ifNavNodeEqualsCurrentlyLaunchedNavNode>

    <nav:navNodeAnchor navigationMethod="byURL"
     urlParameters="<%=urlParameters%>"
     anchorAttributes="class='lightDTNTextSelected'"/>

</nav:ifNavNodeEqualsCurrentlyLaunchedNavNode>

 

<nav:ifNotNavNodeEqualsCurrentlyLaunchedNavNode>

    <nav:navNodeAnchor navigationMethod="byURL"
     urlParameters="<%=urlParameters%>"
     anchorAttributes="class='lightDTNText'"/>

</nav:ifNotNavNodeEqualsCurrentlyLaunchedNavNode>

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.

See ifAnonymousUser.

ifNotHasMoreIterations

Includes its body if the current node is the last node in the current iteration.

See ifHasMoreIterations.

ifNotNavNodeEqualsLaunchedNavNode

Includes its body if the current node is not the node that was launched during the most recent navigation.

See ifNavNodeEqualsLaunchedNavNode.

IfNotNavNodeEqualsSelectedNavNode

Includes its body if the current node is not the node that was selected by the user.

See ifNavNodeEqualsSelectedNavNode.

ifNotNavNodeHasChildren

Includes its body if the current node has no children nodes.

See ifNavNodeHasChildren.

ifNotNavNodeIsFolder

Includes its body if the current node is not a folder.

See ifNavNodeIsFolder.

ifNotNavNodeIsIView

Includes its body if the current node is not an iView.

See ifNavNodeIsIView.

ifNotNavNodeIsPage

Includes its body if the current node is not a page.

See ifNavNodeIsPage.

ifNotNavNodeInSelectedPath

Includes its body if the current node is not in the selected path.

See ifNavNodeInSelectedPath.

ifNotNavNodeVisualizationType

Includes its body if the current node is not of the type specified by the equals attribute.

See ifNavNodeVisualizationType.

 

 

 

 

End of Content Area