Scripting Resources & Utilities > General Discussion

Finally you can have math arguments in the command FOR

(1/1)

TrailMyx:
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: ---set %test 0
for %i 1 6
{
  for %j 20 10
  set %test %test + %i + %j
}
display ok %test
stop

--- End code ---

Of course EasyUO can't handle this:


--- Code: ---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

--- End code ---

Navigation

[0] Message Index

Go to full version