Modulo / divisibility check
The Modulo / divisibility check robot divides the dividend by the divisor and returns the remainder, the integer part of the quotient, and a divisible-evenly flag (Y/N) in Bitrix24 (Alaio) business processes. Numbers are rounded to integers before dividing; when the divisor is zero it returns zeros and an N flag. Useful for even/odd checks, intervals, and batch splitting.
The robot performs integer division with a remainder right inside a Bitrix24 (Alaio) business process or robot. It takes two numbers as input — the dividend and the divisor (a comma is treated as a decimal separator, and values are cast to integers). It outputs three fields: the division remainder, the quotient (integer part), and a Divisible without remainder Y/N flag. If the divisor is zero, the robot does not crash but returns a zero remainder, zero quotient, and an N flag with an error message. Use it when you need to check whether a number or ID is even, distribute records across N groups in a round-robin fashion, pick every third deal, determine whether an amount is a multiple of a given step, or organize batch processing in fixed-size groups. Use the results in the conditions and calculations of later process steps.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Dividend | string | yes | |
| Divisor | string | yes |
What does the robot return?
| Parameter | Type |
|---|---|
| Division remainder | int |
| Quotient (integer part) | int |
| Divisible without remainder (Y/N) | string |
Scenario: distributing leads between two managers in turn
- A new lead is created
- The robot divides the lead ID by 2 and gets the remainder
- With remainder 0 the lead goes to the first manager, with 1 to the second