Just ignore the strCR and ListLoop for now. Thats all working properly. Here is an example of what "Line" could be equal to within the <cfloop>
Line = TSCE|D:\files\tsce Using ListGetAt(Line,1,'|' plucks out TSCE. I'm trying to match that against the variable TEST. If a match is found do this. Otherwise, do else. On Thu, 18 Sep 2003 11:46:04 -0500, Mark A. Kruger - CFG wrote: > George, > > What's in the varibles strCR and ListLoop? What's the point of the variable > "test" since you aren't using it (at least not here)? > > -Mark > > > > -----Original Message----- > From: Bushy [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 18, 2003 11:38 AM > To: CF-Talk > Subject: re:CONT'D.. What the heck is going on? > > > Hi, > > I just don't see it. Why won't the below <cfif work properly? > > > <cfset test = 'TSCE,TSED,TSEE,TSEM'> > > > <cfloop list="#ListLoop#" Index="Line" Delimiters="#strCR#"> > > <!--- > The ListGetAt(Line,1,'|') can equal TSCE and others. > ---> > > All I want to do is check to see if ListGetAt(Line,1,'|') is equal to a > occurence in variable test. > > Whats wrong with the <cfif syntax? It's not finding the match? > > > <cfoutput> > <hr> > <cfif ListFindNoCase(test,ListGetAt(Line,1,'|'))> > <font color="red">AAAA</font> > <cfelse> > <font color="blue">BBBBB</font> > </cfif> > env_var: #ListGetAt(Line,1,'|')# > destination: #ListGetAt(Line,2,'|')#<br> > <hr> > > </cfoutput> > > > </cfloop> > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137528 Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

