Discuss Scratch
- Discussion Forums
- » Suggestions
- » Boolean variables :D
- donotforgetmycode
- Scratcher
1000+ posts
Boolean variables :D
when green flag clicked
say [boolean variables?!] for (2) secs
say [YES!!!] for (2) secs
:):)
set [<Yeah!> v] to [boolean]Blockspam is a type of forum spam in the form of nonsense, offtopic and long scripts made with the Block Plugin. However, on-topic scripts, such as saying a message with the Say block or using scratchblocks to display an on-topic message is considered a form of speech and is not considered spam.
The Help With Scripts forum has a topic specifically for experimenting with the block plugin, but those who spam elsewhere should be reported.
The old tags were also used to make blockspam.
The Announcements Forum and the New Scratchers Forum are the most vulnerable to blockspam.
However, on-topic scripts, such as saying a message with the Say block or using scratchblocks to display an on-topic message is considered a form of speech and is not considered spam.
This text under the grey line is my signature. It's not part of my post, but it automatically shows up under all of my posts.
I recommend reading jvvg and Sliverus's essays.
She/her
Stuff at the bottom of my signature:
for \({https://scratch.mit.edu/discuss/post/6785965/
set [i v] to [0]
}; <(i) < [10]>; {
change [i v] by (1)
}) \{{
think (i) for (1) secs
}} :: control
Would you recommend a confirmation dialog box on that action?
________________________________
| Really send missiles? (Y)es (N)o |
——————————————————
Please forgive my crude mock-up.
By the way - this is rejected for safety reasons.
a bully with a big belly steals your moist cheesy beefmusic origins
Be horizontal —
(thanks @thugatwoary and @Za-Chary)
Be high contrast
Generation -1: The first time you see this, copy and paste it on top of your signature in the Scratch forums, and decrease the generation by 1. Social experiment.
i ran out of characters
Kumquat lore
The Scratch Forums support bf +-<>[],.
It seems I can still use assets in my signature. test:
;
- Bluebatstar
- Scratcher
1000+ posts
Boolean variables :D
Everyone is saying “no support” because the workaround is easy, but it's also confusing.
It's really not. Boolean Variables are literally just variables that can only store two inputs. The workaround is unbelievably easy and most people could understand it. It would add absolutely nothing to the website, in my opinion. No support.
- -ScratchMods-
- Scratcher
36 posts
Boolean variables :D
Agreed. While it may not be intuitive for new scratchers, trying to figure out a way leads the user to think “woah, that was easy” when they discover how easy the way is.Everyone is saying “no support” because the workaround is easy, but it's also confusing.
It's really not. Boolean Variables are literally just variables that can only store two inputs. The workaround is unbelievably easy and most people could understand it. It would add absolutely nothing to the website, in my opinion. No support.
please look at my platformer that contains my blood, sweat, and tears. here is the link
- ofsme
- Scratcher
9 posts
Boolean variables :D
I think that if scratch is not going to be strongly typed, as someone mentioned above, then we shouldn't have to use boolean reporters such as I think it would be nice to be able to drag variables into boolean slots, and have them be evaluated as booleans implicitly.
<[] = []>to get a true or false value, so I think it would be a good idea to be able to drag variables into boolean slots.
- _RareScratch2_
- Scratcher
100+ posts
Boolean variables :D
I agree.
:)
edit: first post on page 7
set <you mean like this?> to [0]Timesavers prob.
:)
edit: first post on page 7
Last edited by _RareScratch2_ (Aug. 7, 2020 09:31:05)
shift down
you are looking at my siggy
Scratch <– Click if you dont know the link to scratch.mit.edu
My profile <– Useful portal! Don't need to type in my personal page.
Come to the Chill shop! <– My shop. Only text sadly.
this took a long time for the rainbow colours and stuff
Join the Woah army
r ::list
a ::variables
r ::control
e ::operators
s ::sensing
c ::motion
r ::looks
a ::sound
t ::none BOII
c ::list
h ::variables
2 ::control
! ::operators
- Vanilla2011
- Scratcher
500+ posts
Boolean variables :D
I agree
We could make the block like this:
We could make the block like this:
my variable ::variables booleanTho there is an easy workaround.
Last edited by Vanilla2011 (Aug. 7, 2020 13:52:10)
aw heck naw someones' wanting to ban the sab spunch bop faec from scrathc
(ツ::#000)//Master Kakawam, slays evil kumquats.
- theevolutionary
- New to Scratch
1 post
Boolean variables :D
On the topic of booleans:
I understood Scratch was to help make programming concepts and constructs easy to understand/use for a younger audience, and for the most part it does an excellent job.
Booleans are POTENTIALLY complex in application but they are on the idea that something is “true' or ”false'. ‘On’ or ‘Off’. Children understand that concept quite easily. What is HARDER to understand is expressions like “0 = 1” or “1 = 1”. By not having a variable that is “on” or “off” you often force a simple idea into a more abstract one. That is harder for children to understand as opposed to a simple light switch. You allow boolean concepts for sprites which is a good thing, but to not follow through and allow kids to make variables with the idea that something is “on' or ”off“ without sprites gets confusing for children because these things exist in their world.
So respectfully, I disagree that booleans are too 'complex” for children. On the contrary, I believe and have experienced children not understanding why they do not have simple booleans (on/off) variables which forces abstract workarounds to simple ideas in their Scratch “worlds”. Kids understand light switches, they understand the idea of “A” or “B”. By that definition, they already understand the concept of booleans. I would strongly encourage boolean variables with simple “true/false” settings, which maybe should include boolean only comparitors (to reduce programming complexity).
Nuff said. Cheers.
I understood Scratch was to help make programming concepts and constructs easy to understand/use for a younger audience, and for the most part it does an excellent job.
Booleans are POTENTIALLY complex in application but they are on the idea that something is “true' or ”false'. ‘On’ or ‘Off’. Children understand that concept quite easily. What is HARDER to understand is expressions like “0 = 1” or “1 = 1”. By not having a variable that is “on” or “off” you often force a simple idea into a more abstract one. That is harder for children to understand as opposed to a simple light switch. You allow boolean concepts for sprites which is a good thing, but to not follow through and allow kids to make variables with the idea that something is “on' or ”off“ without sprites gets confusing for children because these things exist in their world.
So respectfully, I disagree that booleans are too 'complex” for children. On the contrary, I believe and have experienced children not understanding why they do not have simple booleans (on/off) variables which forces abstract workarounds to simple ideas in their Scratch “worlds”. Kids understand light switches, they understand the idea of “A” or “B”. By that definition, they already understand the concept of booleans. I would strongly encourage boolean variables with simple “true/false” settings, which maybe should include boolean only comparitors (to reduce programming complexity).
Nuff said. Cheers.
- donotforgetmycode
- Scratcher
1000+ posts
Boolean variables :D
I agree with that On the topic of booleans:
I understood Scratch was to help make programming concepts and constructs easy to understand/use for a younger audience, and for the most part it does an excellent job.
Booleans are POTENTIALLY complex in application but they are on the idea that something is “true' or ”false'. ‘On’ or ‘Off’. Children understand that concept quite easily. What is HARDER to understand is expressions like “0 = 1” or “1 = 1”. By not having a variable that is “on” or “off” you often force a simple idea into a more abstract one. That is harder for children to understand as opposed to a simple light switch. You allow boolean concepts for sprites which is a good thing, but to not follow through and allow kids to make variables with the idea that something is “on' or ”off“ without sprites gets confusing for children because these things exist in their world.
So respectfully, I disagree that booleans are too 'complex” for children. On the contrary, I believe and have experienced children not understanding why they do not have simple booleans (on/off) variables which forces abstract workarounds to simple ideas in their Scratch “worlds”. Kids understand light switches, they understand the idea of “A” or “B”. By that definition, they already understand the concept of booleans. I would strongly encourage boolean variables with simple “true/false” settings, which maybe should include boolean only comparitors (to reduce programming complexity).
Nuff said. Cheers.
This text under the grey line is my signature. It's not part of my post, but it automatically shows up under all of my posts.
I recommend reading jvvg and Sliverus's essays.
She/her
Stuff at the bottom of my signature:
for \({https://scratch.mit.edu/discuss/post/6785965/
set [i v] to [0]
}; <(i) < [10]>; {
change [i v] by (1)
}) \{{
think (i) for (1) secs
}} :: control
Would you recommend a confirmation dialog box on that action?
________________________________
| Really send missiles? (Y)es (N)o |
——————————————————
Please forgive my crude mock-up.
By the way - this is rejected for safety reasons.
a bully with a big belly steals your moist cheesy beefmusic origins
Be horizontal —
(thanks @thugatwoary and @Za-Chary)
Be high contrast
Generation -1: The first time you see this, copy and paste it on top of your signature in the Scratch forums, and decrease the generation by 1. Social experiment.
i ran out of characters
Kumquat lore
The Scratch Forums support bf +-<>[],.
It seems I can still use assets in my signature. test:
;
- dogeiscut
- Scratcher
500+ posts
Boolean variables :D
I don't need this, and it would take up space in the editor. No support, also very easy work around is to just use regular varibles
set [foo v] to [1]
set [foo v] to [0]
<(foo) = [1]>
<(foo) = [0]>
peanut
- Vibrato
- Scratcher
1000+ posts
Boolean variables :D
everything takes up space in the editor. terrible argument, there I don't need this, and it would take up space in the editor. No support, also very easy work around is to just use regular variblesset [foo v] to [1]
set [foo v] to [0]
<(foo) = [1]>
<(foo) = [0]>
I understand about indecision
In software development, deleting, it's just a concept. Some software might have a delete button and when you click it a thing disappears, but it's not really gone. Okay, it's not gone from the memory.
chances are nobody will find your account, so nobody will follow you.
I'm going to close this suggestion as it is technically implemented and rejected at the same time.
- dogeiscut
- Scratcher
500+ posts
Boolean variables :D
ahemeverything takes up space in the editor. terrible argument, there I don't need this, and it would take up space in the editor. No support, also very easy work around is to just use regular variblesset [foo v] to [1]
set [foo v] to [0]
<(foo) = [1]>
<(foo) = [0]>
tell this fella the same thing
(this was on a suggestion i made and i was trying to get revenge which i admit is quite stupid of me)
Last edited by dogeiscut (Aug. 24, 2020 15:13:05)
peanut
- _RareScratch2_
- Scratcher
100+ posts
Boolean variables :D
What? You mean like this? I don't need this, and it would take up space in the editor. No support, also very easy work around is to just use regular variblesset [foo v] to [1]
set [foo v] to [0]
<(foo) = [1]>
<(foo) = [0]>
set [boolean v] to [true] //Statement shows that boolean variable is true.
set [boolean v] to [false] //Statement shows that boolean variable is false.
(boolean) //Dosen't look like a boolean...
boolean ::variables boolean //Like this [I realised you can use ::boolean :O]
shift down
you are looking at my siggy
Scratch <– Click if you dont know the link to scratch.mit.edu
My profile <– Useful portal! Don't need to type in my personal page.
Come to the Chill shop! <– My shop. Only text sadly.
this took a long time for the rainbow colours and stuff
Join the Woah army
r ::list
a ::variables
r ::control
e ::operators
s ::sensing
c ::motion
r ::looks
a ::sound
t ::none BOII
c ::list
h ::variables
2 ::control
! ::operators
- donotforgetmycode
- Scratcher
1000+ posts
Boolean variables :D
I support boolean variables because they're useful. I don't support the topic that post is on because it wouldn't really be usefulahem
tell this fella the same thing
(this was on a suggestion i made and i was trying to get revenge which i admit is quite stupid of me)
Last edited by donotforgetmycode (Aug. 25, 2020 12:20:07)
This text under the grey line is my signature. It's not part of my post, but it automatically shows up under all of my posts.
I recommend reading jvvg and Sliverus's essays.
She/her
Stuff at the bottom of my signature:
for \({https://scratch.mit.edu/discuss/post/6785965/
set [i v] to [0]
}; <(i) < [10]>; {
change [i v] by (1)
}) \{{
think (i) for (1) secs
}} :: control
Would you recommend a confirmation dialog box on that action?
________________________________
| Really send missiles? (Y)es (N)o |
——————————————————
Please forgive my crude mock-up.
By the way - this is rejected for safety reasons.
a bully with a big belly steals your moist cheesy beefmusic origins
Be horizontal —
(thanks @thugatwoary and @Za-Chary)
Be high contrast
Generation -1: The first time you see this, copy and paste it on top of your signature in the Scratch forums, and decrease the generation by 1. Social experiment.
i ran out of characters
Kumquat lore
The Scratch Forums support bf +-<>[],.
It seems I can still use assets in my signature. test:
;
- Nambaseking01
- Scratcher
1000+ posts
Boolean variables :D
Like so many other people have said, just use a normal variable and set it to true or false. If you feel that it would be hard to see the difference between normal variables and the variable that you made a boolean, you can just name them “boolean”, or set it as the second word of the variable after the function you're using it for (like “runBoolean”).
Hey there! My name is Nammy. I'm a male Forum Helper and Scratch Wiki Editor.
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!
Profile | Test Account | Talk with me here! | Griffpatch is quitting Scratch?!
- TrainerJaden2
- Scratcher
79 posts
Boolean variables :D
another type:WHAT ARE BOOLEAN VARIABLES???????!?!?!?:oOne question:
A variable that can be either true or false. If it was a Scratch block it would have pointy ends.
So that's a boolean variable?
I kind of support because they're timesavers.
There shold be a dropdown, instead of putting strings.
So the block is like this: [set to
false
Then you can put it in a boolean insert, like
if <touching boy?> or
repeat until <touching boy?>
if <[5]=[10]> then
set [does 5 equal 10? v] to [true]
else
set [does 5 equal 10? v] to [false]
end
- cooldude-222
- Scratcher
100+ posts
Boolean variables :D
You could just doanother type:WHAT ARE BOOLEAN VARIABLES???????!?!?!?:oOne question:
A variable that can be either true or false. If it was a Scratch block it would have pointy ends.
So that's a boolean variable?
I kind of support because they're timesavers.
There shold be a dropdown, instead of putting strings.
So the block is like this: [set to
false
Then you can put it in a boolean insert, like
if <touching boy?> or
repeat until <touching boy?>if <[5]=[10]> then
set [does 5 equal 10? v] to [true]
else
set [does 5 equal 10? v] to [false]
end
set [Does 5 = 10 v] to <[5] = [10]>
Have a nice day!
- cooldude-222
- Scratcher
100+ posts
Boolean variables :D
What does the toggle block do<my boolean::grey>
<☁ my boolean::grey>set [my boolean v] to <>::greytoggle [my boolean v]::greyshow boolean [my boolean v]::greyhide boolean [my boolean v]::grey
Have a nice day!