That's a binary XOR, not a boolean XOR. I actually just wrote a binaryXOR function last week (it's on my blog: barneyb.com) while I was .... bum-ba-da-bum ... doing some encryption stuff. Specifically reverse engineering cfusion_encrypt and cfusion_decrypt into CFML UDFs (also available on my blog).
cheers, barneyb On 11/3/05, Steve Brownlee <[EMAIL PROTECTED]> wrote: > The only widespread use I've seen for XOR is in basic encryption algorithms. > Never seen it used outside that. > > > -----Original Message----- > > From: Michael Dinowitz [mailto:[EMAIL PROTECTED] > > Sent: Thursday, November 03, 2005 4:46 PM > > To: CF-Talk > > Subject: XOR > > > > ColdFusion comparison statements (CFIF, etc.) support the XOR > > joiner between clauses. This is used as such: > > clause1 XOR clause2 > > This says that either clause1 or clause2 has to be true for > > the statement to be true. If both are true or both are false, > > then the entire statement is false. My question is: can > > anyone think of a real world example where you would need a > > statement like this? > > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223114 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

