View Single Post
  #27    
Old January 10th, 2012 (11:47 AM).
Stash Stash is offline
 
Join Date: Aug 2010
Gender: Male
Nature: Adamant
Posts: 58
Adding a looping feature is very good idea:

Code:
loop(@i ; 10)
{
      message("Message " + i);
}
OR

Code:
loop(@i ; 10) :
message("Message " + i);
@i declares an integer variable and 10 represents how many times the loop will iterate. Using for or while might be a little confusing to some so using a keyword like loop explains what will happen upon usage better. I also am fond of using brackets since they organize the script, but not really needed. This is regards for a loop. I haven't seen something similar to this in other languages, so this will be great if it is to be implemented. Having a script editor that have a close syntax to an actual programming language would be great, at least in my opinion.