say [Hi] repeat until <[1] = [2]> say [Bye] endleaves "Bye" on the screen. That means that the test happens after the action block executes, not before.
--- repeat --- | | say [Bye] | --- until < [1] = [2] >
Offline
The test is happening — your repeat block is looping forever!
The repeat until block loops until the boolean is true. As 1=2 is false, the block keeps looping forever. Try this:
say [Hi] repeat until <[1] = [2]> move (3) steps endSee how the cat keeps moving?
say [Hi!] repeat until <[1] = [1]> say [Bye!] end...which leaves "Bye!" on the screen, as 1=1 is true, so the mouth of "repeat until 1=1" doesn't execute.
Offline
No problem!
Offline