.is_bool()
A function to test whether the input is a boolean.
Syntax
#fs.scripts.lib().is_bool(value);
Parameters
value
The variable to be tested.
Return
Returns true if the variable is a boolean, false otherwise.
Example
function(context, args) {
const l = #fs.scripts.lib();
const my_test_input = true;
return l.is_bool(my_test_input);
}