Join Slack
Powered by
I have an idea on a workaround, but is there anywa...
# adobe
c
Cavan Vannice
04/15/2024, 8:46 PM
I have an idea on a workaround, but is there anyway built-in to ColdFusion to address variable names that begin with an @ sign?
b
bdw429s
04/15/2024, 8:47 PM
Not sure what you mean by "address", but you should be able to dereference any struct key using the array notation
Copy code
myStruct[ "@odata.context" ]
👍 2
c
Cavan Vannice
04/15/2024, 8:52 PM
Ok, I wasn't looking at it right. I was doing
myStruct["@odata"]context
. It's a Monday. Thank you
@bdw429s
👍 2
2
Views
Open in Slack
Previous
Next