I wish to add two ahk command in single line.
like
loop
{
if a_index=100
Break && Return ;<<<<<<<this
else
tooltip % a_index
}
two command in single line
-
- Posts: 112
- Joined: 06 Jun 2016, 21:32
Re: two command in single line
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.
break and return are mutually exclusive in this context, as are most other control flow statements... probably.
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
}
-
- Posts: 112
- Joined: 06 Jun 2016, 21:32
Re: two command in single line
Yes you R right,,swagfag wrote: ↑21 Jul 2018, 07:51this 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.break and return are mutually exclusive in this context, as are most other control flow statements... probably.Code: Select all
if A_Index = 100 { break return ; unreachable code }
actually, at that time i m very newbie in ahk
Thanks
Who is online
Users browsing this forum: No registered users and 17 guests