I'm creating a check-box option. How could I check within templates whether my array is populated with at least one non-false value?
For example, if my setting array returned the following, I would want my condition not to be true:
Code:
array(3) {
["option_1"] => string(1) "1"
["option_2"] => string(1) "1"
["option_3"] => bool(false)
}
For example, if my setting array returned the following, I would want my condition not to be true:
Code:
array(3) {
["option_1"] => bool(false)
["option_2"] => bool(false)
["option_3] => bool(false)
}