Basically, here's the confusion:
This code: <cfoutput>#(True AND 3)#</cfoutput> displays "3"
This code: <cfoutput>#(False AND 3)#</cfoutput> displays "False"
Now, I can accept the fact that CF handles the first line as multiplication and converts True to 1 (so 1 * 3 = 3). However, if that's the case, shouldn't the second line convert False to 0 and output 0 (0 * 3 = 0)?
Does anyone know the rationale for this? Or could it be a bug?
Scott
---------------------------
Scott Brady
http://www.scottbrady.net/
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

