You are here

function webform_conditional_operator_numeric_equal in Webform 7.4

Conditional callback for numeric comparisons.

1 call to webform_conditional_operator_numeric_equal()
webform_conditional_operator_numeric_not_equal in includes/webform.conditionals.inc
Conditional callback for numeric comparisons.
1 string reference to 'webform_conditional_operator_numeric_equal'
_webform_conditional_operator_info in includes/webform.conditionals.inc
Implements hook_webform_conditional_operator_info().

File

includes/webform.conditionals.inc, line 1658
Form elements and menu callbacks to provide conditional handling in Webform.

Code

function webform_conditional_operator_numeric_equal($input_values, $rule_value) {
  return empty($input_values) ? FALSE : webform_compare_floats($input_values[0], $rule_value) === 0;
}