mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Just to ensure that the third part of the for loop (the updater expression list) is correctly run every iteration when 'continue' is used.
21 lines
327 B
Text
21 lines
327 B
Text
// Check that 'continue' executes the updater expression(s) in for loops
|
|
|
|
integer x;
|
|
|
|
f() inline
|
|
{
|
|
++x;
|
|
}
|
|
|
|
default
|
|
{
|
|
timer()
|
|
{
|
|
for (x = 1; x < 5; f())
|
|
{
|
|
if (x == 3)
|
|
continue; // still executes f() but not llOwnerSay()
|
|
llOwnerSay((string)x);
|
|
}
|
|
}
|
|
}
|