Basically, I have nested structures. I want to check if the nested structure
exists first. If it does not exist, then I'll create it. Then I want to
check if the nested structure's "tickler" value is "Y". Obviously, my cfif
logic is not correct. Thanks!

<cfif NOT isDefined("stWSSB_Tickler")>
        <cfset stWSSB_Tickler = structNew()>
</cfif>

<cfloop from="1" to="#arrayLen(xmlcontent.message.items.item)#" index="x">

<cfif NOT structKeyIsEmpty(stWSSB_Tickler[x])>
        <cfif structFind(stWSSB_Tickler[x], "tickler") NEQ "Y">

                <cfset stWSSB_Tickler[x] = structNew()>
                <cfset stWSSB_Tickler[x].ord_qty =
xmlcontent.message.items.item[x].ord_qty.xmlText />
                <cfset stWSSB_Tickler[x].unit_price =
xmlcontent.message.items.item[x].unit_price.xmlText />
                <cfset stWSSB_Tickler[x].tickler = "Y" />

        </cfif>

</cfif>

</cfloop>


Che Vilnonis
Application Developer
Advertising Systems Incorporated
8470C Remington Avenue
Pennsauken, NJ 08110
p: 856.488.2211
f: 856.488.1990
www.asitv.com 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281069
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to