Geo
Geo

Reputation: 3200

Dumping variables from lists ColdFusion 9

I have this struct after I dump it like this:

<cfdump var="#currentInfo.answers#">

How can I access the value inside the LIST?

I need to compare that value with another variable in the future to allow me to do certain operations.

Struct

Upvotes: 1

Views: 133

Answers (2)

ale
ale

Reputation: 6430

Since the value is dynamic you'll need something like this:

currentKey="F0FF5FDC-D2C3-4D0F-D7D2D2886D5B430d";
currentInfo.answers[currentKey].LIST;

Upvotes: 0

barnyr
barnyr

Reputation: 5678

The code below ought to do it:

currentInfo.answers["F0FF5FDC-D2C3-4D0F-D7D2D2886D5B430d"].LIST

Upvotes: 5

Related Questions