The following code display 32.

If you run the code the value in the var on the last trip of the loop was 22

after it finish the loop how come the value changes to 32. Can understnad that. can 
someone explain it to me please.

<CFLOOP INDEX="CBA" FROM="1" TO="15" STEP="2"> 
<cfoutput>
This is an outer Loop ang CBA Value is #CBA#<BR>
  <CFLOOP INDEX="TIMEX" FROM="2" TO="30" STEP="10"> 
        This is an inner Loop ang TIMEX Value is #TIMEX#<BR>
    <CFIF CBA EQ 4> 
       <CFEXIT METHOD="LOOP"> 
    </CFIF> 
  </CFLOOP> 
</cfoutput>  
</CFLOOP>  


<cfoutput>#timex#</cfoutput>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
The annual ColdFusion User Conference is being held Sat 6/26 - Sun 6/27/04 8am-5pm in 
the Washington DC Area. 
http://www.houseoffusion.com/banners/view.cfm?bannerid=44

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183077
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to