two command in single line

Propose new features and changes
Posts: 37
Joined: 06 Jun 2016, 21:32

two command in single line

21 Jul 2018, 07:20

I wish to add two ahk command in single line.

if a_index=100
Break && Return ;<<<<<<<this
tooltip % a_index
Posts: 2008
Joined: 11 Jan 2017, 17:59

Re: two command in single line

21 Jul 2018, 07:51

this doesnt even make any sense.
what do u imagine the statement Break and Return should do? Break out of the loop, then return out of the function? Thats what Return by itself already does.

Code: Select all

if A_Index = 100
return ; unreachable code
break and return are mutually exclusive in this context, as are most other control flow statements... probably.

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 2 guests