$a || $b Logical or Tags || comparison logical or Related $a or $b $a && $b !$a true || false; // true false || false; // false // Also works with truthy and falsy values: 1 || 0; // true 0 || ''; // false 1.0+