Discuss Scratch
- Discussion Forums
- » Suggestions
- » Let's make 2 new blocks for true and false for sensing
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
define trueHow will you use them?
if <[thing] = (true)> then
activate true::sensing
broadcast [true v]
end
(true)
when I receive [true v]
say [Correct!] for (2) secs
change [points v] by (1)
define false
if <[thing] = (false)> then
activate false::sensing
broadcast [false v]
end
(false)
when I receive [false v]
say [Incorrect...] for (2) secs
change [points v] by (-1)
Last edited by AllenderaGames (Nov. 10, 2023 00:00:46)
- medians
-
1000+ posts
Let's make 2 new blocks for true and false for sensing
If these are meant to be boolean blocks, you can use any condition that is either always true or always false.
- Eason_9
-
1000+ posts
Let's make 2 new blocks for true and false for sensing
Why do we need it anyway? We could just do:
if <thing> then
...
end
- cookieclickerer33
-
1000+ posts
Let's make 2 new blocks for true and false for sensing
is this like report or something??
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
boolean blocks, you can use any condition that is either always true or always false.you don't understand these blocks are for more like quizzes like when a answer is correct or false If these are meant to be
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
as I told the true and false blocks are for more like quizzes or also they can be used for sensing like: Why do we need it anyway? We could just do:if <thing> then
...
end
when green flag clicked
if <<touching color [#FF0000] ?> and <true>> then
restart::control
end
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
Hey y'all! Can you or someone can make an workaround of this blocks?
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
forget it I searched the posible workarounds but I searched on the wiki and some Scratchers wanted it as an operator block, anyways here are the workarounds I found: Hey y'all! Can you or someone can make an workaround of this blocks?
In variables:
set [variable v] to [true]In operators:
set [variable v] to [false]
<not <>>//returns truebut I still want a workaround that can be made with sensing blocks ( only voluntary)
<<> and <>>//returns false
and in this post I will interpret that add these blocks in sensing not in operators
and finally I think that these blocks could get added on future versions like 4.0 or the next update but still being 3.0. I don't mind if it's added in operators but I prefer that these blocks are added in sensing
Last edited by AllenderaGames (Oct. 20, 2023 15:29:56)
- gdfsgdfsgdfg
-
1000+ posts
Let's make 2 new blocks for true and false for sensing
<not <>> // reports true
<not <not <>>> // reports false
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
well that also can be an workaround, but the wiki replaces:<not <>> // reports true
<not <not <>>> // reports false
<not <not <>>>by
<<> and <>>so it's a bit confusing….
Last edited by AllenderaGames (Oct. 20, 2023 15:30:16)
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
and plus in this discussion I interpret that these blocks are reporters (sorry if I sounded rude)boolean blocks, you can use any condition that is either always true or always false.you don't understand these blocks are for more like quizzes like when a answer is correct or false If these are meant to be
Last edited by AllenderaGames (Oct. 20, 2023 17:23:25)
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
I didn't understanded you with: ‘' is this like report or something??’' because I only understand if your'e talking about the shape of the block, if that's the case it's reporter not report if you mispelled is this like report or something??
- cookieclickerer33
-
1000+ posts
Let's make 2 new blocks for true and false for sensing
Report as in a report functionI didn't understanded you with: ‘' is this like report or something??’' because I only understand if your'e talking about the shape of the block, if that's the case it's reporter not report if you mispelled is this like report or something??
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
ooooohhhh, yeah it reportsReport as in a report functionI didn't understanded you with: ‘' is this like report or something??’' because I only understand if your'e talking about the shape of the block, if that's the case it's reporter not report if you mispelled is this like report or something??
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
can you make some example uses after my explanation?
Here's one:
When an answer is correct or incorrect
Here's one:
When an answer is correct or incorrect
when backdrop switches to [question time v]So can you make an example?
ask [What's 6x6?] and wait
if <<(answer) = [36]> or <(answer) = (true::sensing)>> then
say [good! you earned an point!] for (2) secs
change [score v] by (1)
else
say [Uh Oh! that's wrong!] for (2) secs
change [score v] by (-1)
end
- -Expo
-
1000+ posts
Let's make 2 new blocks for true and false for sensing
boolean blocks, you can use any condition that is either always true or always false.you don't understand these blocks are for more like quizzes like when a answer is correct or false If these are meant to be
then you can easily use variables for that. The computer itself does not know whose cousin's uncle's niece's nephew's sister's brother's baby bro's God father died in 1842 (Joking)
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
Examples using variables?boolean blocks, you can use any condition that is either always true or always false.you don't understand these blocks are for more like quizzes like when a answer is correct or false If these are meant to be
then you can easily use variables for that. The computer itself does not know whose cousin's uncle's niece's nephew's sister's brother's baby bro's God father died in 1842 (Joking)
Also if you want to you can make some examples with these blocks!
Last edited by AllenderaGames (Oct. 20, 2023 23:01:48)
- Andygun11
-
100+ posts
Let's make 2 new blocks for true and false for sensing
personally i use:forget it I searched the posible workarounds but I searched on the wiki and some Scratchers wanted it as an operator block, anyways here are the workarounds I found: Hey y'all! Can you or someone can make an workaround of this blocks?
In variables:set [variable v] to [true]In operators:
set [variable v] to [false]<not <>>//returns truebut I still want a workaround that can be made with sensing blocks ( only voluntary)
<<> and <>>//returns false
and in this post I will interpret that add these blocks in sensing not in operators
and finally I think that these blocks could get added on future versions like 4.0 or the next update but still being 3.0. I don't mind if it's added in operators but I prefer that these blocks are added in sensing
<[1] = [1]>
<[1] = [0]>
- AllenderaGames
-
100+ posts
Let's make 2 new blocks for true and false for sensing
yeah that also appearedpersonally i use:forget it I searched the posible workarounds but I searched on the wiki and some Scratchers wanted it as an operator block, anyways here are the workarounds I found: Hey y'all! Can you or someone can make an workaround of this blocks?
In variables:set [variable v] to [true]In operators:
set [variable v] to [false]<not <>>//returns truebut I still want a workaround that can be made with sensing blocks ( only voluntary)
<<> and <>>//returns false
and in this post I will interpret that add these blocks in sensing not in operators
and finally I think that these blocks could get added on future versions like 4.0 or the next update but still being 3.0. I don't mind if it's added in operators but I prefer that these blocks are added in sensing<[1] = [1]>
<[1] = [0]>
- medians
-
1000+ posts
Let's make 2 new blocks for true and false for sensing
Okay, but I was thinking you could've not realized to put <> for booleans.and plus in this discussion I interpret that these blocks are reporters (sorry if I sounded rude)boolean blocks, you can use any condition that is either always true or always false.you don't understand these blocks are for more like quizzes like when a answer is correct or false If these are meant to be
Also, you could probably just use an equals block then.
- Discussion Forums
- » Suggestions
-
» Let's make 2 new blocks for true and false for sensing