I'm familiar with inline conditionals.

I understand how it works, what doesn't make sense to me is that it's
returning one of the values instead of a boolean, which is what I
expected.

if (a && b) -- resolves true if a and b are both true, false otherwise
if (a || b) -- resolves true if a or b are true, false if both are false

a && b -- returns true if a and b are both true, false otherwise
a || b -- returns a if a resolves true, b otherwise

That is why I'm saying it's unexpected behavior.  Useful, but unexpected
based on previous experience.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to