Modulo Operator for URScript

we faced a lot of situations where a modulo operator would be very handy in URScript e.g. checking a pose distance y in x steps and doing stuff while interpolating so it would be nice having this operator in future releases :slight_smile:

1 Like

I agree, this would be a really useful feature to have, as coding a workaround is bulky and inefficient

There is a modulo operator, use % such as 5%2 returns 1. Been in URScript for as long as I can remember. We use it in a number of applications for keeping track of where we are in the process and knowing when we need to index or something.

2 Likes

wow i feel incredibly stupid right now… had a syntax error on a line while testing it and thought its missing… thank you, @mbush :smiley: