I'm not sure, but I think you are trying to figure out if the result of the break is an integer. You can use the module operator% to get the remainder of the division operation.
Assuming that iboth splitare integer types (int, long, short, etc.), then the module returns 0 when ior splitis an integer value, that is:
if ( i % split == 0 ) {...}
source
share