Setting a calculation to "a multiple of X"?

One final roadblock between me and a flawlessly automated workflow:

I need my variable "TEST_CycleCount" to return a "true" condition if it is a multiple of 10, and a false if it is any other number. I can't figure out how to make this happen. :frowning:

I'm sorry my questions seem so simple. I'm new to programming / scripting, and math was my worst subject in school.

Sounds like you need Modulo (MOD in Keyboard Maestro). Modulo returns the “remainder” of a divison. Any number evenly divided by 10 will not leave a “remainder”. So ((9 MOD 10) = 0) will be false but ((10 MOD 10) = 0) will be true.

1 Like