How to check value in an Array using Coldfusion?
I have below code 

    
    <cfset abcList = "c,B,b,A,C,a">
    <cfset abcList=ListToArray(abcList,',')>
   
When I Printed `'abcList'` then it sis givig me value but when i use the `'abcList'` in `<cfif>` its not working, Below is the code which created problem

 

     <cfoutput>
      #abcList[1]# <!---This is giving 'C' as Correct o/p--->
       <cfif #abcList[1]# eq 'C'> <!---Here its going in else-->
       list has C at first place
      <cfelse>
       C is not first
         </cfif>
     </cfoutput>

Any Suggestions whats wrong in my code?

Thanks,  

        
How to check value in an Array using Coldfusion?
===

I have below code 

    
    <cfset abcList = "c,B,b,A,C,a">
    <cfset abcList=ListToArray(abcList,',')>
   
When I Printed `'abcList'` then it sis givig me value but when i use the `'abcList'` in `<cfif>` its not working, Below is the code which created problem

 

     <cfoutput>
      #abcList[1]# <!---This is giving 'C' as Correct o/p--->
       <cfif #abcList[1]# eq 'C'> <!---Here its going in else-->
       list has C at first place
      <cfelse>
       C is not first
         </cfif>
     </cfoutput>

Any Suggestions whats wrong in my code?

Thanks,  

        