I'm trying to get an if statement inside a loop of ahk to run some code ONLY after the counter variable value is greater or equal to X(lets use 10 for this example), if the condition is met, it sends some words to a text input, then reset the counter variable to 0 again. so I'm using IfGreaterOrEqual but it just bypasses it.
its not working, it keeps going through as nothing. could some one shed some light into what am I doing wrong?
F3::
Toggle := !Toggle
if(Toggle){
gosub Loop1
gosub Loop2
}
SetTimer, Loop1, % (Toggle) ? 19550 : "Off"
SetTimer, Loop2, % (Toggle) ? 306500 : "Off"
return
F4::Reload
Loop1:
vCOUNT++
SendInput word-1{Enter}
IfGreaterOrEqual, vCOUNT, 10
SendInput word-2{Enter}
SendInput word-3{Enter}
vCOUNT :=0
SendInput Counter was reset, its value is now: %vCOUNT% {Enter}
return
Loop2:
SendInput word-4{Enter}
SendInput word-5{Enter}
SendInput word-6{Enter}
SendInput word-7{Enter}
return