function webform_conditional_operator_select_less_than_equal in Webform 7.4
Conditional callback for select comparisons.
1 string reference to 'webform_conditional_operator_select_less_than_equal'
- _webform_conditional_operator_info in includes/
webform.conditionals.inc - Implements hook_webform_conditional_operator_info().
File
- includes/
webform.conditionals.inc, line 1635 - Form elements and menu callbacks to provide conditional handling in Webform.
Code
function webform_conditional_operator_select_less_than_equal($input_values, $rule_value, $component) {
$comparison = empty($input_values) ? NULL : webform_compare_select($input_values[0], $rule_value, _webform_select_options($component, TRUE));
return $comparison < 0 || $comparison === 0;
}