BBjspHashMap::getBoolean (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 16.0 and higher, this method will return a boolean value derived from the stored value in this BBjspHashMap.

If the object in the BBjspHashMap is not a Boolean then the object will be coerced into a boolean.

Syntax

Return Value

Method

Boolean

getBoolean(string key)

Parameters

Variable

Description

key

The name of the object.

Return Value

Returns a boolean.

Remarks

None.

Example

declare BBjspHashMap map!

map! = BBjAPI().makeBBJSP().makeBBjspHashMap()

map!.put("B1",1.23)
map!.put("B2","TRUE")

print map!.getBoolean("B1")
print map!.getBoolean("B2")

print map!

See Also

BBjspHashMap

BBjspHashMap::setBoolean()