I was surprised when I accidentally discovered this very strange behavior. On an unware statement nevertheless commandos. Later I realized that it was probably because it was all in one line. Other programming languages are no problem. An error message has it also nciht. I will now have to examine my other scripts.
the following lines works like a true condition:
if(false)lll...
if(0)lll...
follwong works like false (like expected):
if(false)
lll...
if(0)
lll...
with regex you could find it with:
^[ ]*if[ ]*\([^()]+\)[^{\s]+
used
AutoHotkey_1.1.26.01_setup.exe
if(...).... in ohne line
if(...).... in ohne line
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: if(...).... in ohne line
The IfEqual, IfNotEqual, etc commands can have another command on the same line - see the help documentation for details.
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe
Re: if(...).... in ohne line
(false) lll is a legitimate expression which concatenates the variables false (containing 0) and lll.
The condition of an IF statement is not required to be enclosed in parentheses. It is just a convenient way of disambiguating between IF-expression and the other types of IF statement, since expressions always allow parentheses and the other types of IF do not.
What? I'm guessing that was mistranslated.
The condition of an IF statement is not required to be enclosed in parentheses. It is just a convenient way of disambiguating between IF-expression and the other types of IF statement, since expressions always allow parentheses and the other types of IF do not.
...On an unware statement nevertheless commandos.
What? I'm guessing that was mistranslated.
Who is online
Users browsing this forum: No registered users and 24 guests