To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationFor to loops

As well as the standard for loop, YASS also supports an alternative syntax, similar to VB.NET, that uses the to keyword:

for($i = 0 to 10)
  //Do something
end for

As with all loops, for loops may be terminated by end loop.

Performance differences

In reality, the YASS for to loop is considerably higher performance compared with the C-style version, especially when using a native build of ZPE.

Code previewClose
Feedback 👍
Comments are sent via email to me.