Discuss Scratch
- Discussion Forums
- » Suggestions
- » Easier way of combining "Join", "And" and "Or" blocks.
- fdreerf
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
How is this confusing and anyways, what about beginners? they can find it confusing.
(join [] (join [] (join [] (join [] (join [] [])))))Quick question: would the multiple inputs for the contains block work like the or block (return true if any of the inputs are in the list) or the and block (return true only if all the inputs are in the list)?
(join (letter (1) of [world]) (join (letter (2) of [world]) (join (letter (3) of [world]) (letter (4) of [world])))
<<[ v] contains [thing] ?> and <<[ v] contains [thing] ?> and <[ v] contains [thing] ?>>>
Hyped for MS-DOS 11.0
- p-p-p-p-p-p-p-p-p-p-
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
any of the inputs are in the list) or the and block (return true only if all the inputs are in the list)?It would only return if all of them were because if you are adding that you are most likely searching for content in something. Quick question: would the multiple inputs for the contains block work like the or block (return true if
- gosoccerboy5
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
I like the mockup.join [foo] [bar] [baz] @delInput@addInput :: operators reporterBetter concept art
letters (1) (2) (3) @delInput@addInput of [world] :: operators reporter
[haystack] contains [needle] or [key] or [turkey] @delInput@addInput :: operators boolean
I guess it's "Haystack contains needle, and turkey", ok. Alternatively you could use a small dropdown menu.
[haystack] contains [all v] of[needle], [key], [turkey]?@delInput@addInput :: operators boolean
Anyways this seems like a great idea. No more huge clunky boolean combinations
Last edited by gosoccerboy5 (Oct. 8, 2020 14:08:29)
- p-p-p-p-p-p-p-p-p-p-
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
How aboutI like the mockup, but…join [foo] [bar] [baz] @delInput@addInput :: operators reporterBetter concept art
letters (1) (2) (3) @delInput@addInput of [world] :: operators reporter
[haystack] contains [needle] or [key] or [turkey] @delInput@addInput :: operators boolean
the “haystack contains” part, does it say "haystack contains needle, or turkey“?
or does it say ”Haystack contains needle, and turkey“? There's a bit of room for ambiguity on that one. The other ones seem fine.
Edit: okay, I guess it's ”Haystack contains needle, and turkey", ok never mind
Anyways this seems like a great idea. No more huge clunky boolean combinations
[haystack] contains [needle], [key] [or v] [turkey] @delInput@addInput :: operators boolean // can be OR or AND
- gosoccerboy5
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
I added that to my post
- fdreerf
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
You can also do the same thing with commutative operations:
(() + () + () @delInput@addInput ::operators)equalities & inequalities:
(() * () * () @delInput@addInput ::operators)
<[] = [] = [] = [] @delInput@addInput ::operators>and boolean operations:
<[] > [] > [] > [] @delInput@addInput ::operators>
<[] < [] < [] < [] @delInput@addInput ::operators>
<<> and <> and <> @delInput@addInput ::operators>I'm not sure if it should work with subtraction and division, as order matters and require parentheses (or separate blocks) to be easily read.
<<> or <> or <> @delInput@addInput ::operators>
Last edited by fdreerf (Oct. 8, 2020 14:21:27)
Hyped for MS-DOS 11.0
- p-p-p-p-p-p-p-p-p-p-
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
Interesting! You can also do the same thing with commutative operations:(() + () + () @delInput@addInput ::operators)equalities:
(() * () * () @delInput@addInput ::operators)<[] = [] = [] = [] @delInput@addInput ::operators>and boolean operations:<<> and <> and <> @delInput@addInput ::operators>I'm not sure if it should work with subtraction and division, as order matters and require parentheses (or separate blocks) to be easily read.
<<> or <> or <> @delInput@addInput ::operators>
- gosoccerboy5
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
Wow dumb me saying dumb things
Last edited by gosoccerboy5 (Jan. 22, 2021 18:51:24)
- fdreerf
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
It's just two extra buttons to pre-existing blocks to add an input. There won't be any new blocks. Hm.. I guess this leads to a bit of a mess in the operators section.. idk
Hyped for MS-DOS 11.0
- gosoccerboy5
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
I guess. Extreme support!
Last edited by gosoccerboy5 (Oct. 8, 2020 14:38:31)
- MeIzAwezomeDede
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
everything is confusing to a beginner.and why? Nice idea, +1 with you there.
anyways, what about beginners? they can find it confusing.
custom blocks can be overwhelming, yet they exist.
pen can be overwhelming too, whaddya know-
Nothing to see here
- PkmnQ
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
Not sure if the contains block should have it, but support. I think the if-else block should have it.
if <> then {Also, these scratchblocks are scratch 2.0 styled, so I think we might need a mockup for scratch 3.
} else if <> then {
} else {
} @delInput@addInput :: control
Last edited by PkmnQ (Oct. 21, 2020 00:16:53)
This is an account that exists.
Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary
- MeIzAwezomeDede
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
That block right there. I need it in my life. Not sure if the contains block should have it, but support. I think the if-else block should have it.if <> then {Also, these scratchblocks are scratch 2.0 styled, so I think we might need a mockup for scratch 3.
} else if <> then {
} else {
} @delInput@addInput :: control
And these other blocks too (as I’ve stated lol)
Nothing to see here
- IndianRuby718
- Scratcher
100+ posts
Easier way of combining "Join", "And" and "Or" blocks.
instead of the last two I think you should havejoin [foo] [bar] [baz] @delInput@addInput :: operators reporter
letters (1) (2) (3) @delInput@addInput of [world] :: operators reporter
[haystack] contains [needle] or [key] or [turkey] @delInput@addInput :: operators boolean
(( ), ( ), and ( ) @delInput @addInput :: operators)That way you can do this:
(( ), ( ), or ( ) @delInput @addInput :: operators)
(letter (( ), ( ), and ( ) @delInput @addInput :: operators) of [world])And I don't know whether it should be implemented with buttons or options in the right-click menu. Buttons would be more efficient, but how would they look on the actual block… making “buttons” with the bbc scratchblocks doesn't really show how it would look in design. I guess that choice is up to the ST :P
<[list v] contains (( ), ( ), or ( ) @delInput @addInput :: operators)?>
Other than that, I support!
yup. both I think the if-else block should have it.this and my just-created topic (XP) are subtopics of this… so maybe they should both be closed? [This would be a good question to answer in the stickies…]if <> then {
} else if <> then {
} else {
} @delInput@addInput :: control
100th Post!!!
So… I didn't update my signature for over a year XP But… I left the forums, and I'm not coming back anytime soon
(and I'm not updating my signature)
Both stickied Suggestions Directories currently have 138 replies.
Only fdreerf can break the equilibrium.
________________
Only fdreerf can break the equilibrium.
________________
I get more frustrated with people telling me about “mass reporting” than I do about “mass reporting” itself.source
good luck digging up the original reply in the comments
ctrl+f exists
https://scratch.mit.edu/discuss/post/6961734/
Bug with the color effect I would really like to see fixed
EEEEEEE DDDDDD IIIIIIII TTTTTTTT NNN NN OOOOO
EE DD DD II TT :: NNNN NN OO OO
EEEEEEE DD DD II TT NN NN NN OO OO
EE DD DD II TT :: NN NN NN OO OO
EE DD DD II TT NN NNNN OO OO
EEEEEEE DDDDDD IIIIIIII TT NN NNN OOOOO
Hand-done.
< :: extension>
< :: custom-arg>
< :: motion>
Don't click this link…
- PkmnQ
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
discussion about an entirely different thing
Last edited by PkmnQ (May 9, 2021 11:58:49)
This is an account that exists.
Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary
- PkmnQ
- Scratcher
1000+ posts
Easier way of combining "Join", "And" and "Or" blocks.
Constructive bump
The first has a good amount of discussion on it, so it should be merged with this one
this and my just-created topic (XP) are subtopics of this… so maybe they should both be closed?yup. both
The first has a good amount of discussion on it, so it should be merged with this one
Last edited by PkmnQ (Nov. 11, 2020 00:59:54)
This is an account that exists.
Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary
- IndianRuby718
- Scratcher
100+ posts
Easier way of combining "Join", "And" and "Or" blocks.
I don't think so, because if the two topics get merged, then all the discussion would be about else-if… even if the discussion turns back to focusing on all the blocks mentioned, there's just going to be a huge chunk of else-if discussion :P If anything, the else-if one should be closed, and the link would be mentioned in the OP for reference, but that's still a lot of discussion. I think both should stay open and separate.this and my just-created topic (XP) are subtopics of this… so maybe they should both be closed?The first has a good amount of discussion on it, so it should be merged with this one yup. both
anyway, I've closed my topic now :P so
So… I didn't update my signature for over a year XP But… I left the forums, and I'm not coming back anytime soon
(and I'm not updating my signature)
Both stickied Suggestions Directories currently have 138 replies.
Only fdreerf can break the equilibrium.
________________
Only fdreerf can break the equilibrium.
________________
I get more frustrated with people telling me about “mass reporting” than I do about “mass reporting” itself.source
good luck digging up the original reply in the comments
ctrl+f exists
https://scratch.mit.edu/discuss/post/6961734/
Bug with the color effect I would really like to see fixed
EEEEEEE DDDDDD IIIIIIII TTTTTTTT NNN NN OOOOO
EE DD DD II TT :: NNNN NN OO OO
EEEEEEE DD DD II TT NN NN NN OO OO
EE DD DD II TT :: NN NN NN OO OO
EE DD DD II TT NN NNNN OO OO
EEEEEEE DDDDDD IIIIIIII TT NN NNN OOOOO
Hand-done.
< :: extension>
< :: custom-arg>
< :: motion>
Don't click this link…
- panda-wat
- Scratcher
100+ posts
Easier way of combining "Join", "And" and "Or" blocks.
We have some blocks which aren't for beginners. how does that change anything? anyways, what about beginners? they can find it confusing.
My browser/operating system: Microsoft BOB 1.0, gateway 2000 edition