Put it in single quotes
<cfif session.ad_sec_lev is 'administrator'>
-----Original Message-----
From: Owens, Howard [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 8:35 PM
To: CF-Talk
Subject: It Matchs, but CFIF says it doesn't
I'm doing a little security check:
<cfif session.AD_SEC_LEV IS "administrator">
You're good to go.
<cfelse>
You are the weakest link. Goodbye.
</cfif>
Now, I KNOW for a fact that the exact variable I'm passing as the
session.AD_SEC_LEV is indeed "administrator"
But I keep getting the cfelse portion of the conditional.
I KNOW it matches. I've checked with <cfoutput>. What are some reasons
CFIF is telling me it doesn't?
(It's probably something simple that I'm missing, but so far, I can't
figure
it out).
Thanks.
H.
Howard Owens
Internet Operations Coordinator
www.insidevc.com
[EMAIL PROTECTED]
AIM: GoCatGo1956
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists