brihol44
asked on
Looping through structure to find value...
Hello, Please take a look at my screenshot of a structure. Basically, I have single structure with nested structures. I'm just trying to pull the "discount_id" where "DISCOUNT_CUSTOMER_SPENDIN G" eq "true". I can't seem to figure this one out. There should only be one available discount that eq "true" so I would think it would fairly simple.
Thanks for the help!
Brian
Thanks for the help!
Brian
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you named the structure "discount"
<cfset discount = getCartDiscountData(cart=m ycart)>
Then you should not use the variable name DiscountResponse, instead use the variable "discount" instead
<cfset discount = getCartDiscountData(cart=m
Then you should not use the variable name DiscountResponse, instead use the variable "discount" instead
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My solution works for what I was needing regarding the structure I have.
ASKER
<cfset discount = getCartDiscountData(cart=m
Then comes the structure...
When I add in your code I get the following error.
Variable DISCOUNTRESPONSE is undefined.