File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,16 @@ OP_LOOP_END
5353### Repeat until
5454Scratch has a while loop, but until is used more frequently, so the VM doesn't support the while loop.
5555
56- The repeat until loop can be implemented using \link libscratchcpp::vm::OP_REPEAT_UNTIL OP_REPEAT_UNTIL \endlink
56+ The repeat until loop can be implemented using \link libscratchcpp::vm::OP_UNTIL_LOOP OP_UNTIL_LOOP \endlink
5757and \link libscratchcpp::vm::OP_BEGIN_UNTIL_LOOP OP_BEGIN_UNTIL_LOOP \endlink.
5858```
59- OP_REPEAT_UNTIL
59+ OP_UNTIL_LOOP
6060(evaluate the condition here)
6161OP_BEGIN_UNTIL_LOOP
6262...
6363OP_LOOP_END
6464```
65- \note The condition is evaluated after \link libscratchcpp::vm::OP_REPEAT_UNTIL OP_REPEAT_UNTIL \endlink and the loop
65+ \note The condition is evaluated after \link libscratchcpp::vm::OP_UNTIL_LOOP OP_UNTIL_LOOP \endlink and the loop
6666starts with \link libscratchcpp::vm::OP_BEGIN_UNTIL_LOOP OP_BEGIN_UNTIL_LOOP \endlink.
6767
6868### Forever
@@ -75,7 +75,7 @@ OP_LOOP_END
7575
7676This is equivalent to:
7777```
78- OP_REPEAT_UNTIL
78+ OP_UNTIL_LOOP
7979OP_NULL
8080OP_BEGIN_UNTIL_LOOP
8181...
You can’t perform that action at this time.
0 commit comments