Opened 8 years ago

Closed 8 years ago

#3196 closed Feature Request (Rejected)

Feature request: conditional code in curly braces

Reported by: mexykanu Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:



I've come back to AutoIt after some months in PHP/Javascript and i think it would be awesome if Autoit also allowed the curly brace conditional code syntax.
Autoit syntax:

if $var == 0 then
   do something
   do something else

PHP/Javascript syntax

if ($var == 0) {
   do something
} else {
   do something else

Pretty please ?

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by anonymous

How would this proposal line-up with the very first line in the Helpfile?

AutoIt v3 is a freeware BASIC-like scripting language 


comment:2 Changed 8 years ago by BrewManNH

Also, how does adding a bunch of unnecessary braces help you do something that you can't do now? Your braces have only replaced the Then and EndIf statements, and add nothing.

comment:3 Changed 8 years ago by Jos

  • Resolution set to Rejected
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.