Primitive type representing a boolean value, true or
false.
Boolean values can be compared using the == and
!= operators.
Boolean values have the following logical operators:
Operation
Expression
AND
x && y
OR
x || y
NOT
!x
Rule evaluation will short-circuit on a boolean expression:
// Short-circuits at 'true' so someFunction() will never runtrue||someFunction()// Short-circuits at 'false' so someFunction() will never runfalse&&someFunction()// someFunction() will always runfalse||someFunction()
Strings can be converted into booleans using the bool()
function:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-12-13 UTC."],[],[],null,["[rules](/docs/reference/rules/rules).Boolean \ninterface static\n\nPrimitive type representing a boolean value, `true` or\n`false`.\n\nBoolean values can be compared using the `==` and\n`!=` operators.\n\nBoolean values have the following logical operators:\n\n*** ** * ** ***\n\nRule evaluation will short-circuit on a boolean expression: \n\n```scilab\n// Short-circuits at 'true' so someFunction() will never run\ntrue || someFunction()\n\n// Short-circuits at 'false' so someFunction() will never run\nfalse && someFunction()\n\n// someFunction() will always run\nfalse || someFunction()\n```\n\nStrings can be converted into booleans using the `bool()`\nfunction: \n\n```text\nbool(\"true\") == true\n```"]]