Jennifer,

The "=" sign has never been a supported comparison operator in
ColdFusion-it's always been IS or EQ. CF4.5.1 is definitely operating
correct by throwing an error. If for some reason IS or EQ doesn't get you
the results you were expecting, try this for string comparisons:

<CFIF NOT Compare(string1, string2)>

</CFIF>

-Dan
+--------+---------------------------+
|   name | Dan G. Switzer, II        |
|company | PengoWorks.com            |
|    www | http://www.pengoworks.com |
| mailto | [EMAIL PROTECTED]   |
+--------+---------------------------+


-----Original Message-----
From: Jennifer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 12, 2000 1:13 PM
To: [EMAIL PROTECTED]
Subject: 4.5.1 Solaris cfif weirdness

Those of you who have been following my turmoils with the bad naughty
client will remember that my main issue with them is that they refused to
install 4.0.1 (for Solaris) because they didn't want to install that and
then install 4.5.1 only a few months later. Well, 4.5.1 has been released
and, against our recommendation that they wait until the second release of
the Solaris native version, they have installed 4.5.1 on the testing
server. I already have an issue with 4.5.1. Apparently, they believe that
if we are good programmers we can get around any server bugs (like
cfstoredproc crashing permanently) but I'll stop being a crankypuss about
that now.

I just got an error message on a page that is working on the server that is
running 4.0. This is the message:
"Error in expression:

  AdminID=0

  Invalid conditional expression. Perhaps you are using = instead of EQ or
IS to compare values."

I may just have been stupid when I set this up, but 4.0 had a lot of cfif
problems that were fixed in 4.0.1 and I probably did this to get around one
of them. It was very cranky about how values were compared in cfif
statements. I was under the impression that I am supposed to compare
integer values with = and text values with EQ or IS. I may have been wrong
in that assumption. I've worked on this server alone for the past 4 months,
so I may have rewritten my brain to compensate for the 4.0 cfif weirdness.
Please tell me if I am wrong or if this is entirely a 4.5.1 issue.

Thanks!

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to