Discuss Scratch

Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

Boolean Value Blocks are the blocks that return True or False, like the ‘Key (key) Pressed?’ block.

I'm suggesting that they also return the condition like for example I want to get what key is pressed so I can detect if it has the name of an item in a list or not, and an another example, I want to get the equation for the block ‘15 > 56’, so I get ‘15>56’ and get the Boolean value of the equation.

Scratch should be able to detect what the user wants from the block, the condition or the Boolean value of it.



So can the Scratch Team add the ability to do that? Because it can allow for so much efficiency in people's code.

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
ResExsention
New to Scratch
1000+ posts

Boolean Value Blocks Returning Condition

But Scratch booleans really are booleans…

They return true or false.

Infrequently active.

It feels weird to see how far we've come. I hope you're well, wherever you are!
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

ResExsention wrote:

But Scratch booleans really are booleans…

They return true or false.
The user can get the Boolean or the condition(like a key pressed block would also return what key the user pressed even if it's not the required key)

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
iruxgame
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

you could work around detecting what key was pressed but it is a long script


achievements:
100 posts::#A34352
became a scratcher::#A34352
first game uploaded::#A34352
first forum post::#A34352
welcome to scratch!::#A34352
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

iruxgame wrote:

you could work around detecting what key was pressed but it is a long script
It's not just the keys, it's for all Boolean returner blocks, but thanks for telling me it's atleast possible to do it with keys using a work around.

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

bump

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

Bump

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
Maximouse
Scratcher
1000+ posts

Boolean Value Blocks Returning Condition

You mean like this?
(key pressed :: sensing)


This is Maximouse's signature. Learn more about signatures.
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

Maximouse wrote:

You mean like this?
(key pressed :: sensing)
Yes!

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

Bump

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
gosoccerboy5
Scratcher
1000+ posts

Boolean Value Blocks Returning Condition

Looks like this is a duplicate topic of this topic! To keep the discussion in on place, please continue talking there.

This action was carried out by a bot. If I have made any mistake, just tell me, or contact me here.

Just kidding I'm not a bot, but please do correct me if I'm wrong.

NanoPIex
Scratcher
500+ posts

Boolean Value Blocks Returning Condition

gosoccerboy5 wrote:

Looks like this is a duplicate topic of this topic! To keep the discussion in on place, please continue talking there.

This action was carried out by a bot. If I have made any mistake, just tell me, or contact me here.

Just kidding I'm not a bot, but please do correct me if I'm wrong.
Is that talking about variables are booleans?

L
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

gosoccerboy5 wrote:

Looks like this is a duplicate topic of this topic! To keep the discussion in on place, please continue talking there.

This action was carried out by a bot. If I have made any mistake, just tell me, or contact me here.

Just kidding I'm not a bot, but please do correct me if I'm wrong.
How can I delete the suggestion?

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
NanoPIex
Scratcher
500+ posts

Boolean Value Blocks Returning Condition

Leekalo wrote:

gosoccerboy5 wrote:

Looks like this is a duplicate topic of this topic! To keep the discussion in on place, please continue talking there.

This action was carried out by a bot. If I have made any mistake, just tell me, or contact me here.

Just kidding I'm not a bot, but please do correct me if I'm wrong.
How can I delete the suggestion?
Scroll to the bottom of the screen and there will be a button close post, click.

L
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

NanoPIex wrote:

Leekalo wrote:

gosoccerboy5 wrote:

Looks like this is a duplicate topic of this topic! To keep the discussion in on place, please continue talking there.

This action was carried out by a bot. If I have made any mistake, just tell me, or contact me here.

Just kidding I'm not a bot, but please do correct me if I'm wrong.
How can I delete the suggestion?
Scroll to the bottom of the screen and there will be a button close post, click.
There isn't

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.
NanoPIex
Scratcher
500+ posts

Boolean Value Blocks Returning Condition

Leekalo wrote:

NanoPIex wrote:

Leekalo wrote:

gosoccerboy5 wrote:

Looks like this is a duplicate topic of this topic! To keep the discussion in on place, please continue talking there.

This action was carried out by a bot. If I have made any mistake, just tell me, or contact me here.

Just kidding I'm not a bot, but please do correct me if I'm wrong.
How can I delete the suggestion?
Scroll to the bottom of the screen and there will be a button close post, click.
There isn't
Hm…well, the ST will close the topic soon for you, don`t worry!

L
Leekalo
Scratcher
100+ posts

Boolean Value Blocks Returning Condition

NanoPIex wrote:

Leekalo wrote:

NanoPIex wrote:

Leekalo wrote:

gosoccerboy5 wrote:

Looks like this is a duplicate topic of this topic! To keep the discussion in on place, please continue talking there.

This action was carried out by a bot. If I have made any mistake, just tell me, or contact me here.

Just kidding I'm not a bot, but please do correct me if I'm wrong.
How can I delete the suggestion?
Scroll to the bottom of the screen and there will be a button close post, click.
There isn't
Hm…well, the ST will close the topic soon for you, don`t worry!
I reported the topic earlier, so I guess I made the right choice.

You may not see a common appearance of me in the forums, but remember,

every announcement, every introduction, every request, every link, every idea, every collaboration, every question, every suggestion, every bug, every advancing, every connection, every extension, every open, every creation, every reading, every playing,

has been in my sight once.

Powered by DjangoBB