Does anyone think that if can be added in a single line?
Required in not very complex scenarios
appear legible
For example, add "then" or comma, or other identifiers
Ternary operator cannot replace a single if without else
It will make the expression difficult to read
single-line Can make the script appear clear
single-line way to write if??
Re: single-line way to write if??
Code: Select all
if true
b := 5
(true) && (b := 5)
Re: single-line way to write if??
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
Who is online
Users browsing this forum: No registered users and 21 guests