>>#1 or true#
>>That should return 1, not true.
No, the operator is boolean, it then should return true.
>>Someone pointed out that the value returned is the last value evaluated.
In (true or 1) that is true, since it's shortcircuited.
Right, the evaluation of true OR true is shortcircuited, but AFTER the operator has been checked. The operator is boolean, then the last value evaluated must be converted to a boolean before it is returned.
--
_______________________________________
See some cool custom tags here:
http://www.contentbox.com/claude/customtags/tagstore.cfm
Please send any spam to this address: [EMAIL PROTECTED]
Thanks.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

