Discuss Scratch

Bazarr
Scratcher
18 posts

Boolean Data

Hi there,

I was thinking about blocks for scratch, and then bools came to mind.
I know that you can do bools with a string that reads ‘true’ or ‘false’, or a int, float or double that reads ‘0’ or ‘1’, but that might get a bit confusing to new scratchers.

Here are some blocks that the bools could include:

1. Set true/false.
setboolhasKeytofalse alternitavely set to true

2. If bool is true or false?
boolhasKeyistrue alternitavely set to false

3. Change status of bool
changestatusofboolhasKey

Anyways that's all I thought of.
Please suggest some more things.
-Biz.
*ps the colour for the block is #e06d14

Last edited by Bazarr (June 19, 2020 06:28:57)

BosenChang
Scratcher
1000+ posts

Boolean Data

Good, but use it like this for number 1 and 2:
setboolhasKeytotrue or false*
ifboolhasKeytrueifboolhasKeyfalse

*see true/false in my topic

Last edited by BosenChang (June 19, 2020 00:47:46)

Bazarr
Scratcher
18 posts

Boolean Data

done the edits

Last edited by Bazarr (June 19, 2020 06:23:02)

E_Equals_EmCeCube3
Scratcher
1000+ posts

Boolean Data

It looks like this suggestion has been proposed before in this topic.
Feel free to continue the discussion there so we can keep individual suggestions organized and in one place.
Paddle2See
Scratch Team
1000+ posts

Boolean Data

E_Equals_EmCeCube3 wrote:

It looks like this suggestion has been proposed before in this topic.
Feel free to continue the discussion there so we can keep individual suggestions organized and in one place.
Thanks for the link! It does look like this is a duplicate topic so I'll close it to keep the conversation all in one place.

Please use the existing topic in the link above.

Powered by DjangoBB