and

Applies the ternary AND logic on values. If no arguments is provided, returns the value of the left operand.

See also or.

Syntax

and(value_1[, value_i[, ...]])
Parameter Description
value_i The boolean value(s) to be compared to.

Examples

$('BooleanVar').and($('OtherBooleanVar'))
$('BooleanVar').and($('OtherBooleanVar').not())
$('BooleanVar').and($('SomeBooleanVar'), $('OtherBooleanVar'))