문제

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

올바른 솔루션이 없습니다

다른 팁

Could you just use PHP's fmod function?

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top