Code: Select all
While Expression,MoreExpressions,A_Index<3
MsgBox % A_Index
Code: Select all
While (Expression,MoreExpressions,A_Index<3),MsgBox(A_Index)
Code: Select all
While Expression,MoreExpressions,A_Index<3
MsgBox % A_Index
Code: Select all
While (Expression,MoreExpressions,A_Index<3),MsgBox(A_Index)
It's up to the user I would sayjust me wrote:Readability?
Code: Select all
; both not good to read:
While (Expression,MoreExpressions,A_Index<3),v:=A_Index*2,a:=Func(v)
While Expression,MoreExpressions,A_Index<3
v:=A_Index*2,a:=Func(v)
; one liner is not as good to read but still okay in my view
While (Expression, MoreExpressions, A_Index<3), v:=A_Index*2, a:=Func(v)
While Expression,MoreExpressions, A_Index<3
v:=A_Index*2, a:=Func(v)
And the same is true for indentation.joedf wrote:Also, like C, new lines are basically not needed, which is pretty cool.
Yes, Readability is bad! Avoid it at all costs! Write Machine code in HEX instead!just me wrote:And the same is true for indentation.joedf wrote:Also, like C, new lines are basically not needed, which is pretty cool.
Code: Select all
010101110110100001111001001000000110111001101111011101000010000001101001011011100010000001000010011010010110111001100001011100100111100100111111
Code: Select all
53 61 6d 65 20 73 68 69 7a 7a 6c 65 21 20 3b 29
while accepts an expression and just like if, return, := and similar, multi-comma expressions are allowed. Same goes for For-loop.guest3456 wrote:also someone is gonna have to explain to me why multiple comma separated expressions are allowed within the 'while' parens
Noooooooeeeess!!!!hoppfrosch wrote:Same here - readability rules!
Code: Select all
while wb.Busy, Sleep 10
Code: Select all
while wb.Busy
Sleep, 10
Return to “AutoHotkey Development”
Users browsing this forum: No registered users and 12 guests