title: autohotkey flags keeps skipping my function
body: <p>can you guys help me, i have added a flag, however it skips teleport() and keeps walksouth() any idea why? I'm kinda newbie here i hope you guys help me</p>
  
  <pre><code>    walk1 := 0
      loop {
          teleport()
      }
  
  
      teleport()
      {
      if (walk1 =&gt; 1)   ;this never worked  even i added flag walk1:=1 :(  please help 
  
                  send, {f9}
                  sleep, 500
                  walk1 := 0
                  return
  }    else if (walk1 &lt;= 0){ 
                   walksouth()
                   return
  
                  }
          }
  
  
  
       walksouth() {   ;this keeps running and skipping teleport() 
              send, {f5}      
              sleep, 500
              walk1 := 1  ;added flag 1 to run the teleport, but still skipping
            return
  
      }
  </code></pre>