error with if statement

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
surfactant
Posts: 99
Joined: 28 Jun 2019, 01:07

error with if statement

23 Sep 2021, 03:25

I'm confused with the case. What's wrong? Thank you!

OK

Code: Select all

LWin::
   A=1
   If A=1 
   {
      B=1
   } 
   MsgBox %A%
return

Error

Code: Select all

LWin::
   A=1
   If A=1 {
      B=1
   } 
   MsgBox %A%
return
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: error with if statement

23 Sep 2021, 06:06

The One True Brace (OTB) style may optionally be used with If statements that are expressions (but not traditional If statements)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: inseption86, jaka1, metallizer, rc76, Rohwedder and 310 guests