IsTrue

You can review the details of the isTrue JSP function.

Description

This JSP function returns true if the attribute specified in the input parameter has a value of Y, or true. Otherwise, it returns false. It is not case sensitive.

Syntax

boolean isTrue(String bindingStr);

Input parameters

bindingStr - Required. Binding string that specifies which attribute to evaluate.

Output parameters

A boolean indicating if the attribute being evaluated has a value of Y or true.

Example

This example uses the isTrue() function to find out the value of the attribute referred to in the xml:/OrderRelease/@HasDerivedParent binding.

boolean isAgainstOrder=isTrue("xml:/OrderRelease/@HasDerivedParent");