What browsers show this problem? Chrome Version 83.0.4103.106 (Official Build) (64-bit)
Please share an example project (if possible).
Describes the steps to reproduce this issue. Below
What does Snap! currently do? Loops when SPRITE is not in corral
What should Snap! do instead? Fail gracefully with result 0 or blank.
This is in Ver 0.6.0 beta.
Transferred from Help for Snap per @bh suggestion due to possible bug :
I am using for an existing Sprite B1:
and getting the correct answer.
Then I wanted to use the same logic to test if sprite of a particular name existed or not, by using B5 (non-existing):
Which returns no answer, assuming because there is no sprite with that name.
If I execute this second ASK block by clicking on it, it comes back immediately.
But if I put it into a SAY block or try to assign it to a variable or even try to check it's length, then the block goes into an endless loop, trying to resolve the name.
Why is that?
Should it not return immediately with an empty STRING as name, or some equivalent value?
Sigh. The stop button works, so does evaluating stop all.
We're going to play the game of who-finds-a-possible-type-error until we've succeeded to make Snap! all slow with type checks. What ever happened to "don't protect users from themselves"?