Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if statements
#5
top is a label in the example to make it go to a specific line right about the line create a label then use a goto statement and use label u created
Code:
Copy      Help
;top        <-----this is a label
ifa "Notepad" ;;If Notepad is active
,out "Notepad is active."
else
,goto next  ;;<----this is how u make it skip to the label
;some code..
;more code..
;next            <-------this is also label
Code:
Copy      Help
;this is how code should look in qm
;top        

ifa "Notepad" ;;If Notepad is active
,out "Notepad is active."
else
,goto next  
;some code..
;more code..
;next            

out "Notepad is not active"
;to paste into qm copy here and use paste escaped(it can be found either in the edit menu  under other formats or by right clicking the code area  in qm)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)