in magneto 2 we have condition operators such as

$operators = [
            '>=' => __('equals or greater than'),
            '<=' => __('equals or less than'),
            '>' => __('greater than'),
            '<' => __('less than'),

is there any operator for "multiple of specific number"


multiple of 2 is 4,6,8,10

multiple of 3 is 6,9,12,15

kindly advise. Thanks

1 Answer 1


Could you just use PHP's fmod function?

I.e. "Is X a multiple of Y?"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.