Answered Need help with simple math function

STEVESKI07

Member
Joined
Sep 12, 2007
Messages
17
Programming Experience
1-3
I have a quick question which I should know the answer to but I haven't used it in a long time so I forget and I haven't found it in any searches.

I'm going through a loop of a undetermined length. What I'm trying to do is check if the loop counter is a factor of 50 (ex. 50, 100, 150, 200, etc.) and if so I want to perform another function. Isn't there a property I can use that check that?

Thanks in advance.
 
Last edited:
Do you mean like the Modulus function? So you would use something like:
IF ((counter Mod 50) == 0) Then
'Do one thing
Else
'Do another
End If

Hope that helps.
 
Yes that is exactly the function I was looking for. I knew it existed and I knew I've used it before, but it's been a while and couldn't come up with the name. Thank you!
 
Back
Top