If it detected that the earlier condition meet, it will automatically abardon the check.
var x = true;
x = x || runmyfunction();
if x is true, runmyfunction will not be checked or executed. But if x is false, then runmyfunction will be executed to return the value.