Something fancier then


<cfif IsDefined("blah")>
    <cfif blah LT 4></cfif>
<cfelse>
    <cfif blah GT 4></cfif>
</cfif>


But that doesn't make much cense to me, since if the variable is undefined
how can you compare it, unless you are comparing a different variable then
the one you are checking to see if it is defined.


<cfif IsDefined("something")>
    <cfif blah LT 4></cfif>
<cfelse>
    <cfif blah GT 4></cfif>
</cfif>


That might make some cense to me.
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-----Original Message-----
From: Wurst, Keith D. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:11 AM
To: CF-Talk
Subject: cfif dynamic lt / gt

hey everyone. i want to write a cfif tag that checks to see if a var is
defined and switches the gt / lt attribute based on that check. for example
- if the variable is defined, then write

cfif blah lt 4

if the variable is not defined then write...

cfif blah gt 4

any help is appreciated. thanks.
   _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to