RobotStudio event

Odd or even numbers

Hi

I would like to check if a value is odd or even, does anyone have a good solution for this in RAPID?

I know its possible to divide a value by 2 and count the amount of decimals, but i cannot find a function that can count decimals.

Thank you

Comments