two command in single line

Propose new features and changes
MonuKashyap
Posts: 27
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.
like

loop
{
if a_index=100
Break && Return ;<<<<<<<this
else
tooltip % a_index
}
swagfag
Posts: 949
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] [Download] GeSHi © Codebox Plus

if A_Index = 100
{
break
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: TigerYT and 3 guests