featurelist.orgfeaturelist.org
 
U
D
-1 points - posted 3362 days ago by DanielB - status: Active - 2 comments watch embed this
if the "if" command is used in the following syntax
if(<value1> <operator> <value2>)
as opposed to
if(<value1> <operator> <value2>) (then/do)

then it defaults to "do"

This would make it more like other languages.

Jeff posted on 2008-04-16 00:20:32
This would stop backwards compatibility for some older Event Scripts. So I do not think this would be a good idea...

~J3ff

PatPeter posted on 2009-11-28 02:23:41
Technically to be like other languages it would have to default to then, Java:

Then
if (x < 3)
System.out.println("x is less than 3!");

if (x < 3) System.out.println("x is less than 3!");

Do
if (x < 3) {
System.out.println("x is less than 3!");
}

if (x < 3)
{
System.out.println("x is less than 3!");
}