two command in single line

Propose new features and changes
MonuKashyap
Posts: 112
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: 6222
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
{
break
return ; unreachable code
}
break and return are mutually exclusive in this context, as are most other control flow statements... probably.
MonuKashyap
Posts: 112
Joined: 06 Jun 2016, 21:32

Re: two command in single line

07 Dec 2021, 00:40

swagfag wrote:
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
{
break
return ; unreachable code
}
break and return are mutually exclusive in this context, as are most other control flow statements... probably.
Yes you R right,,
actually, at that time i m very newbie in ahk

Thanks

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 16 guests