Tried it Clint, see below... It does NOT test True for the Square Bracket.
Does this have something to do with Regular Expressions?
What's the proper way to test for the ] character?

<cfset temp = "]"
<cfoutput><br>temp = #temp#<br></cfoutput>
<cfif trim(temp) EQ "]"> 
<cfoutput><br>temp = #temp#<br></cfoutput> Yep It Works! 
</cfif>


At 08:09 AM 6/26/02, you wrote:
>First off,trim your var in the if statement and then change the "IS" to "eq". I have 
>had this problem before and by always trimming my vars and using eq instead of is, I 
>have had far less problems like this.
>
>HTH
>Clint
>
>---------- Original Message ----------------------------------
>from: Brian Scandale <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>date: Wed, 26 Jun 2002 00:49:35 -0700
>
>Why doesn't this <cfif> statement catch the "]" character?
>
>Or a better question is How do i branch on that character... chr(93) doesn't work 
>either.
>
><cfset temp = "]"
>
><cfoutput><br>temp = #temp#<br></cfoutput>
>
><cfif temp IS "]">
>    <cfoutput><br>temp = #temp#<br></cfoutput> Yep It Works!
></cfif>
>
>
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to