31 Dec 2018: Thank you to our knowledgeable and friendly forums users for another great year. We are aware of the uptick in spam accounts and are doing our best to ban these at first sight. Thank you for your patience!

Rule to determine divisibility

I've been asked to create a rule to determine whether an entered integer is a multiple of 5. Given that for some reason OC doesn't support the modulo operator, I tried the following:

I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".1" or
I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".2" or
I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".3" or
I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".4" or
I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".5" or
I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".6" or
I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".7" or
I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".8" or
I_HM025_TIME_COMPLETE_STAGE1_ASS / 5 ct ".9"

All I get is the massively irritating 'Oops! An error has occurred' message. I have tried this without "" around the ".1", ".2", etc, but I get an error message saying that the . is unexpected because ct is expecting something in quotes. I've tried the expression with and without bracketing, and with the 5 as both 5 and 5.0, but get the Oops error each time.

I_HM025_TIME_COMPLETE_STAGE1_ASS is an INT.

Where am I going wrong? Is the expression too long or something? And if so, why can't OC tell me this?

Any assistance gratefully received.

Malcolm

Tagged:
Sign In or Register to comment.