Discuss Scratch

SFollis
Scratcher
500+ posts

booleans can go in number slots

drag an or or if block and try putting it in a number slot.

Well, did it work? Of course it did! number slots are not boolean slots though, you may ask. That is why this is a glitch!

Kinderlabor
Scratcher
51 posts

booleans can go in number slots

This is a funny glitch indeed! Some small tests reveal that booleans in number slots behave like one would expect under these circumstances (false = 0, true = 1).
cool_dude_2
Scratcher
100+ posts

booleans can go in number slots

Kinderlabor wrote:

This is a funny glitch indeed! Some small tests reveal that booleans in number slots behave like one would expect under these circumstances (false = 0, true = 1).
nope. it gives it NaN and it does nothing.

Browser:, Flash 21.0 (release 0) with Either Firefox or Vivaldi.
I'm on a helping RAMPAGE! I go find questions that I can answer helpfully and help whoever with whatever on Scratch and elsewhere on the network of interconnected networks!
when green flag clicked
forever
help with question (currentQuestionIndex)
next [question v]
end
I MAY or MAY NOT be the REAL Jonathan Fakename.
cool_dude_2
Scratcher
100+ posts

booleans can go in number slots

SFollis wrote:

drag an or or if block and try putting it in a number slot.

Well, did it work? Of course it did! number slots are not boolean slots though, you may ask. That is why this is a glitch!
me too

Browser:, Flash 21.0 (release 0) with Either Firefox or Vivaldi.
I'm on a helping RAMPAGE! I go find questions that I can answer helpfully and help whoever with whatever on Scratch and elsewhere on the network of interconnected networks!
when green flag clicked
forever
help with question (currentQuestionIndex)
next [question v]
end
I MAY or MAY NOT be the REAL Jonathan Fakename.

Powered by DjangoBB