<@U0BJDA84R> This page of docs <https://helpx.adob...
# adobe
b
@saghosh This page of docs https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-s/structkeyexists.html describes the
structure
parameter to the
structKeyExsists()
function as expecting
Name of structure to test.
But surely that is wrong. The name of a structure would be a string like
Copy code
structKeyExists( "someStruct", "keyName" )
but that is incorrect as the first param expects the actual struct!
Copy code
structKeyExists( someStruct, "keyName" )
💯 6
In related news, the
structure
argument allows
null
even though the docs don't define this.
Copy code
structKeyExists( javaCast("null",""), "key" )
Lucee Server throws an exception
Copy code
null can not be casted to a Struct
which is what I'd expect here. I'm entering a ticket for that.
a
Adobe a re shocking with their nomenclature in the docs.
s
Thank you Brad. I've updated the description.
❤️ 1
👍 1
m
Can an admin move this thread to #documentation so it doesn't get lost in the hustle and bustle of #adobe?
a
If that's possible, I don't see a way to do it. Could paste a link to it in the docs channel?
m
OK did that. I'm not an admin here so I wasn't sure if you had the power.
s

https://media.tenor.com/C7BweO_X39sAAAAC/aladdin-animated.gif