Modify

Opened 10 years ago

Closed 10 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:

Description

Hello,

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
else
   do something else
endif

PHP/Javascript syntax

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

Pretty please ?

Attachments (0)

Change History (3)

comment:1 by anonymous, 10 years ago

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

Introduction
AutoIt v3 is a freeware BASIC-like scripting language 

Jos

comment:2 by BrewManNH, 10 years ago

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 by Jos, 10 years ago

Resolution: Rejected
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.