here ya go - here's an example:

<cfset w = "0">
<cfset x = "NEQ">
<cfset y = "1">

<cfif evaluate("#w# #x# #y#")>hi</cfif>

+-----------------------------------------------+
Bryan Love
  Database Analyst
  Macromedia Certified Professional
  Internet Application Developer
TeleCommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
        - Thomas Paine, The American Crisis

"Let's Roll"
        - Todd Beamer, Flight 93



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:12 AM
To: CF-Talk
Subject: Decision operators as variables


Hello,

I'm probably missing something simple, but how can I make this cfif
statement work using only variables?

<cfif NOT
Evaluate("arguments.FormVars.#this.aFieldsCart[i].RequiredFieldName#")
this.aFieldsCart[i].FieldComparisonValue
this.aFieldsCart[i].FieldComparisonValue>

Where Evaluate("arguments.FormVars.#this.aFieldsCart[i].RequiredFieldName#")
is the variable name,
this.aFieldsCart[i].FieldComparisonValue is a Decision Operator (gt, lt,
gte, lte, eq, etc...)
And this.aFieldsCart[i].FieldComparisonValue is the value I'm checking
against.

Thanks,
Jonathan
________________________________________________________
Jonathan Mauney
Manager, Digital Media Properties / Web Application Developer
1110 WBT AM / 107.9 the LINK (WLNK-FM) / Jefferson-Pilot Radio Network
Jefferson-Pilot Communications Co.
One Julian Price Place
Charlotte, North Carolina 28208


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to