<CORE:IfNot>

Description

In BBj 16.0 and higher, the ifnot tag can be used within a BBJSP Page to conditionally write text to the resulting HTML output that will be sent to the client browser.

Attributes

Attribute Name

Description

Required

Expression

Data Type

test

the test attribute should evaluate to an integer value where any positive number represents a TRUE state.

true

true

int

Remarks

The Core Tag Library library needs to be referenced in the BBJSP Page

Example

<!DOCTYPE html/>

<%-- Import the tag library --%>
<%@ taglib uri='/WEB-CFG/tld/core.tld' prefix='c' %>

<html>
<head>
<title>&lt;c:if></title>
</head>
<body>
<c:ifnot test='${prop}' >
The property was NOT set ...
</c:ifnot>
then we set it to a random number.
<c:set var="prop" value="<%= rnd(100) %>"/>
<c:if test='${prop}' >
The property was set to ${prop}.
</c:if>
</body>
</html>

See Also

BBJSP

Core Tag Library