Configures the output mode for boolean operations. The default is "boolean".
Chalkboard.bool.modeConfig("binary"); // Sets the mode to binaryconst x = Chalkboard.bool.AND(true, false); // Returns 0 in binary modeChalkboard.bool.modeConfig("boolean"); // Sets the mode to booleanconst y = Chalkboard.bool.AND(true, false); // Returns false in boolean mode Copy
Chalkboard.bool.modeConfig("binary"); // Sets the mode to binaryconst x = Chalkboard.bool.AND(true, false); // Returns 0 in binary modeChalkboard.bool.modeConfig("boolean"); // Sets the mode to booleanconst y = Chalkboard.bool.AND(true, false); // Returns false in boolean mode
The new mode to set, which can be either "boolean" or "binary"
Configures the output mode for boolean operations. The default is "boolean".
Example