isNotMap

Returns true if the given Object is not of Type java.util.Map.

isNotMap(obj) → returns boolean

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

obj any
Required

Examples
Sample code invoking the isNotMap function

myMap = createObject('java','java.util.HashMap');
myMap.put('a','1');
writeOutput(isNotMap(myMap));

Expected Result: true

myStruct = {'a': 1};
writeOutput(isNotMap(myStruct));

Expected Result: false

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub