No space between variable and ":="

Get help with using AutoHotkey and its commands and hotkeys
Kagey
Posts: 5
Joined: 09 Jan 2020, 16:31

No space between variable and ":="

16 Jan 2020, 11:35

What, if anything is different between:

Code: Select all

myVar := someValue
and

Code: Select all

myVar:= someValue
?
Thanks!
just me
Posts: 6652
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: No space between variable and ":="

16 Jan 2020, 12:00

One space. ;)
swagfag
Posts: 3250
Joined: 11 Jan 2017, 17:59

Re: No space between variable and ":="

16 Jan 2020, 12:22

one is ugly and breaks the syntax highlighter
the other is pretty and doesnt
Helgef
Posts: 4072
Joined: 17 Jul 2016, 01:02
Contact:

Re: No space between variable and ":="

16 Jan 2020, 12:25

scripting language wrote: Spaces are mostly ignored: Indentation (leading space) is important for writing readable code, but is not required by the program and is generally ignored. Spaces and tabs are generally ignored at the end of a line, within an expression (except between quotes), and before and after command parameters. However, spaces are significant in some cases, including:
src, my red.

Cheers.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], BoomBastic, daywalker, Pepineros, Rohwedder, TAC109 and 189 guests