is.rb 328 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class CoreWorkflow::Condition::Is < CoreWorkflow::Condition::Backend
  3. def match
  4. result = false
  5. value.each do |current_value|
  6. next if condition_value.exclude?(current_value)
  7. result = true
  8. break
  9. end
  10. result
  11. end
  12. end