Boolean
All rules in this page can be applies to boolean and number
Is true
Validates the input is a boolean and the value is true
Or the input is an number and the value is not zero
v.val(true, "is true"); // true
v.val(1, "is true"); // true
v.val(0, "is true"); //falseIs false
Opposite to Is true
v.val(false, "is false"); // true
v.val(1, "is false"); // false
v.val(0, "is false"); // trueLast updated
Was this helpful?