0

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"

e.g:

multiple of 2 is 4,6,8,10

multiple of 3 is 6,9,12,15

kindly advise. Thanks

asked May 11, 2021 at 22:43

1 Answer 1

1

Could you just use PHP's fmod function?

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

answered May 12, 2021 at 1:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.