I am wanting to run a IniWirte every even or odd number but in a never ending loop (hince Until -1).  Somthing like this: 
 
While 1 
               Do 
               $a = $a + 1 
	_Func1() 
	_Func2() 
               ???If $a = ODDNUMBER Then??? 
                     IniWrite(.....) 
               ???If $a = EVENNUMBER Then??? 
                     IniWrite(.....) 
	_Func3() 
	_Func4() 
	Sleep(2000) 
                Until $a = -1 
WEnd 
 
All help is apperciated!!!