ScriptUO

Scripting Resources & Utilities => ScriptUO Application => General Discussion => Topic started by: TrailMyx on June 02, 2008, 11:27:10 PM

Title: Finally you can have math arguments in the command FOR
Post by: TrailMyx on June 02, 2008, 11:27:10 PM
I have the looping construct engine working well.  First implemented is FOR, but with the engine I came up with, it'll handle everything that has to do with blocks braced, or single lines.  So it handles things like this now:

Code: [Select]
set %test 0
for %i 1 6
{
  for %j 20 10
  set %test %test + %i + %j
}
display ok %test
stop

Of course EasyUO can't handle this:

Code: [Select]
set %test 0
set !four 4
set !five 5
for %i 1 6
{
  for % . j !four * !five 6 + 4
  set %test %test + %i + %j
}
display ok %test
stop