This method to set and return a boolean based on whether a ON/OFF constant, usually declared in file bb_constants.php, is set to ON.
Class: bb_main, called as $main
File: bb_main.php (php)
$boolean = $main->on_constant('CONSTANT');
Outputs: Boolean true if constant is set to ON (case insensitive), false if undefined or set to anything other than ON.
The name of the constant being evaluated, can be set:
$constant = "CONSTANT".