Possible Duplicate:
Using &&'s short-circuiting as an if statement?
Does javascript use optimization in boolean expressions?
I would like to know if JavaScript
has "Short-circuit" evaluation like && Operator in C#. If not I would like to know if there is a workaround that makes sense to adopt.