For Loops Not Executing Correctly in SimpleScript #1
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
For Loops Not Executing Correctly in SimpleScript
Description
In SimpleScript,
for
loops do not execute as expected. When using a typical loop likefor (let i = 1; i <= 5; i++)
, the loop either does not iterate correctly or breaks prematurely. This disrupts core control flow functionality and limits usage in real-world scenarios.Steps to Reproduce
for
loop:Expected Behavior
The loop should print the numbers from 1 through 5:
Actual Behavior
The output either shows only the first value, skips iterations, or nothing is printed at all.
Possible Causes
for
loop structureEnvironment
main
Additional Context
This issue affects the usability of SimpleScript in basic looping tasks and may hinder educational use cases. A fix should ensure:
Please investigate and fix the issue. Happy to test and provide feedback!
Thanks for your hard work!
The text was updated successfully, but these errors were encountered: