Jump to content

Recommended Posts

Posted
; If the modulus operation of $iNb by 2 equals to 0 then $iNb is even.
    If Mod($iNb, 2) = 0 Then
        MsgBox($MB_SYSTEMMODAL, "", $iNb & " is an even number.")
    Else
        MsgBox($MB_SYSTEMMODAL, "", $iNb & " is an odd number.")
    EndIf

 

Kind Regards
Skeletor

"Coffee: my defense against going postal."

Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI

Posted

....in few words,  using mod($i, 5) you will get a rest of 0 when $i is a multiple of the second parameter (5 here). In your case this should work:

if Not Mod($i, 5) Then
    RestartElite()
EndIf

 

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...