Discuss Scratch

donotforgetmycode
Scratcher
1000+ posts

Boolean variables :D

Bacteria999 wrote:

super_loro wrote:

when green flag clicked
say [boolean variables?!] for (2) secs
say [YES!!!] for (2) secs
:):)
set [<Yeah!> v] to [boolean]

Scratch Wiki wrote:

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.

Scratch Wiki wrote:

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 \({
set [i v] to [0]
}; <(i) < [10]>; {
change [i v] by (1)
}) \{{
think (i) for (1) secs
}} :: control
https://scratch.mit.edu/discuss/post/6785965/

Paddle2See wrote:

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.

An0therRand0mC0der wrote:

a bully with a big belly steals your moist cheesy beef
music 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 +-<>[],.
_3thou_
It seems I can still use assets in my signature. test:
;
Bluebatstar
Scratcher
1000+ posts

Boolean variables :D

donotforgetmycode wrote:

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

Bluebatstar wrote:

donotforgetmycode wrote:

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.
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.

please look at my platformer that contains my blood, sweat, and tears. here is the link
ofsme
Scratcher
9 posts

Boolean variables :D

theonlygusti wrote:

I think it would be nice to be able to drag variables into boolean slots, and have them be evaluated as booleans implicitly.
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
<[] = []>
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.
ottobun
Scratcher
49 posts

Boolean variables :D

I support!
it could look like this
set var1 to [true v] 
<var1>
set var1 to [false v]

Last edited by ottobun (Aug. 18, 2020 16:42:08)




click here to play scratch on scratch
_RareScratch2_
Scratcher
100+ posts

Boolean variables :D

I agree.
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:
my variable ::variables boolean
Tho there is an easy workaround.

Last edited by Vanilla2011 (Aug. 7, 2020 13:52:10)


Za-Chary wrote:

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.
donotforgetmycode
Scratcher
1000+ posts

Boolean variables :D

theevolutionary wrote:

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 agree with that

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 \({
set [i v] to [0]
}; <(i) < [10]>; {
change [i v] by (1)
}) \{{
think (i) for (1) secs
}} :: control
https://scratch.mit.edu/discuss/post/6785965/

Paddle2See wrote:

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.

An0therRand0mC0der wrote:

a bully with a big belly steals your moist cheesy beef
music 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 +-<>[],.
_3thou_
It seems I can still use assets in my signature. test:
;
ottobun
Scratcher
49 posts

Boolean variables :D

I guess there is a workaround


forever
set var1 to <[a]=[a]>
end

<var1>

define set var1 to <var1>



click here to play scratch on scratch
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

dogeiscut wrote:

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]>
everything takes up space in the editor. terrible argument, there

I understand about indecision

Captain Disillusion wrote:

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.




fdeerf wrote:

chances are nobody will find your account, so nobody will follow you.



Za-Chary wrote:

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

Vibrato wrote:

dogeiscut wrote:

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]>
everything takes up space in the editor. terrible argument, there
ahem



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

dogeiscut wrote:

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]>
What? You mean like this?
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

dogeiscut wrote:

snip wrote:

ahem



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)
I support boolean variables because they're useful. I don't support the topic that post is on because it wouldn't really be useful

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 \({
set [i v] to [0]
}; <(i) < [10]>; {
change [i v] by (1)
}) \{{
think (i) for (1) secs
}} :: control
https://scratch.mit.edu/discuss/post/6785965/

Paddle2See wrote:

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.

An0therRand0mC0der wrote:

a bully with a big belly steals your moist cheesy beef
music 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 +-<>[],.
_3thou_
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?!
TrainerJaden2
Scratcher
79 posts

Boolean variables :D

alexphan wrote:

drmcw wrote:

alexphan wrote:

One question: WHAT ARE BOOLEAN VARIABLES???????!?!?!?:o

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?>
another type:
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

TrainerJaden2 wrote:

alexphan wrote:

drmcw wrote:

alexphan wrote:

One question: WHAT ARE BOOLEAN VARIABLES???????!?!?!?:o

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?>
another type:
if <[5]=[10]> then 
set [does 5 equal 10? v] to [true]
else
set [does 5 equal 10? v] to [false]
end
You could just do
set [Does 5 = 10 v] to <[5] = [10]>

Have a nice day!
a_guy_who_made_games
Scratcher
31 posts

Boolean variables :D

<my boolean::grey> 
<☁ my boolean::grey>
set [my boolean v] to <>::grey
toggle [my boolean v]::grey
show boolean [my boolean v]::grey
hide boolean [my boolean v]::grey

Examples of my work:
cooldude-222
Scratcher
100+ posts

Boolean variables :D

a_guy_who_made_games wrote:

<my boolean::grey> 
<☁ my boolean::grey>
set [my boolean v] to <>::grey
toggle [my boolean v]::grey
show boolean [my boolean v]::grey
hide boolean [my boolean v]::grey
What does the toggle block do

Have a nice day!

Powered by DjangoBB