Discuss Scratch

VeryFamus
Scratcher
1000+ posts

Collapsible nested Booleans

The title kind of explains it:
<<> or <<> and <>>>
to this:
<<> or <<> and <>>^ :: operators>
to this:
<<> or v :: operators>


Can be useful for long booleans stretching over your code

also an example as for multiple nests

<<> or <<> and <<> and <>>>>
to this:
<<> or <<> and <<> and <>>^ :: operators>^ :: operators>
to this:
<<> or v :: operators>
or this
<<> or <<> and v :: operators>^ :: operators>

Last edited by VeryFamus (Feb. 25, 2022 14:56:52)


the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
ayandhisarmy
Scratcher
100+ posts

Collapsible nested Booleans

support,sounds likes a very good idea if you have stuff like:
if < <key [a v] pressed?> or < <key [s v] pressed?> or < <key [w v] pressed?> or <key [d v] pressed?> >>> then


end

no support + dupe + rejected + sus + dont care + didnt ask + illegal + codeless + shut + feddy fazbar + sega + Cease and Desist + alison + gorkamungus







thanks to Aadish_1759 and terrariamods for the front facing cat emoji.
say hello to my….
GIANT KITTEN FORUM ARMY!

the scratch spacecraft ( (=^-^= :: #00ffff) (=^-^= :: #00ffff) (=^-^= :: #00ffff) :: ring) :: hat
(cats!)
(shortened due to signature limit)
we will do stuff on the forums!they are also my kumquat fighters.

https://www.youtube.com/watch?v=Hvw2cNQUuUc <cat on ice
funnny

mcsquaggle
Scratcher
500+ posts

Collapsible nested Booleans

VeryFamus wrote:

The title kind of explains it:
<<> or <<> and <>>>
to this:
<<> or <<> and <>>^ :: operators>
to this:
<<> or v :: operators>


Can be useful for long booleans stretching over your code

also an example as for multiple nests

<<> or <<> and <<> and <>>>>
to this:
<<> or <<> and <<> and <>>^ :: operators>^ :: operators>
to this:
<<> or v :: operators>
or this
<<> or <<> and v :: operators>^ :: operators>
can you make a simple version of it? im confuse
so this:
if <<key [space v] pressed?> or <key [w v] pressed?>> then
show
else
hide
end
would turn into this:
if <<key [space v] pressed?> or ... ➤::operators> then
show
else
hide
end
ig.. support


highlight and down arrow to see all of it
this is joe: joe is protecc and this is frank (A-156 or RD-156): frank likes signatures for breakfast, HE EATS oh noes! your signature was eaten by frank! img]https://cdn2.scratch.mit.edu/get_image/project/881644940_100x80.png[/img copy this (add back the ['s) to have frank eat your signature!


(:>::#bb88f6) //jerry says hi

set [ v] to (:>::#bb88f6)//jerry block

:>::#bb88f6 hat
:>::#bb88f6
:>(:>::#bb88f6)::#bb88f6
:> [#aa77e5]::#bb88f6
:> (:>::#bb88f6 boolean){
:>::#bb88f6
:>::#bb88f6
:> ( :> v) (:>::#bb88a1 stack) @addInput ::#bb88f6
:> ::#bb88f6 cap
} :> (:>::#bb88f6) ::#bb88f6
:> [:> v] ::#bb88f6 cap
::#bb88f6 boolean



B̴̴̸͕͖͖͕̪͔̻͑͒̓͑͑̔̐̕͝E̵̵̴̠̺͔͎̫͖͖̝͑̽̓̀̓̚͘̚A̴̴̸͔̠̟͉͎̼͚̝̿͊̀̐͑͌̓͛͜͠N̵̸̵̦̻̺͇͉͍͓͚͕͊̐̒̒̾̀̐̿
VeryFamus
Scratcher
1000+ posts

Collapsible nested Booleans

mcsquaggle wrote:

VeryFamus wrote:

-snip-
can you make a simple version of it? im confuse
so this:
if <<key [space v] pressed?> or <key [w v] pressed?>> then
show
else
hide
end
would turn into this:
if <<key [space v] pressed?> or ... ➤::operators> then
show
else
hide
end
ig.. support
Thanks for the ego boost, but please don't quote the OP.

Last edited by VeryFamus (Feb. 25, 2022 16:19:43)


the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
mcsquaggle
Scratcher
500+ posts

Collapsible nested Booleans

VeryFamus wrote:

mcsquaggle wrote:

VeryFamus wrote:

-snip-
can you make a simple version of it? im confuse
so this:
if <<key [space v] pressed?> or <key [w v] pressed?>> then
show
else
hide
end
would turn into this:
if <<key [space v] pressed?> or ... ➤::operators> then
show
else
hide
end
ig.. support
Thanks for the ego boost, but please don't quote the OP.
Oke!


highlight and down arrow to see all of it
this is joe: joe is protecc and this is frank (A-156 or RD-156): frank likes signatures for breakfast, HE EATS oh noes! your signature was eaten by frank! img]https://cdn2.scratch.mit.edu/get_image/project/881644940_100x80.png[/img copy this (add back the ['s) to have frank eat your signature!


(:>::#bb88f6) //jerry says hi

set [ v] to (:>::#bb88f6)//jerry block

:>::#bb88f6 hat
:>::#bb88f6
:>(:>::#bb88f6)::#bb88f6
:> [#aa77e5]::#bb88f6
:> (:>::#bb88f6 boolean){
:>::#bb88f6
:>::#bb88f6
:> ( :> v) (:>::#bb88a1 stack) @addInput ::#bb88f6
:> ::#bb88f6 cap
} :> (:>::#bb88f6) ::#bb88f6
:> [:> v] ::#bb88f6 cap
::#bb88f6 boolean



B̴̴̸͕͖͖͕̪͔̻͑͒̓͑͑̔̐̕͝E̵̵̴̠̺͔͎̫͖͖̝͑̽̓̀̓̚͘̚A̴̴̸͔̠̟͉͎̼͚̝̿͊̀̐͑͌̓͛͜͠N̵̸̵̦̻̺͇͉͍͓͚͕͊̐̒̒̾̀̐̿
VeryFamus
Scratcher
1000+ posts

Collapsible nested Booleans

Bump!

the old mythical legend has appeared
some know me as the guy who only posted in suggestions

be high contrast




Lamp oil, rope, bombs. You want it? It’s yours my friend. As long as you have enough rupies.
mcsquaggle
Scratcher
500+ posts

Collapsible nested Booleans

um
b p


highlight and down arrow to see all of it
this is joe: joe is protecc and this is frank (A-156 or RD-156): frank likes signatures for breakfast, HE EATS oh noes! your signature was eaten by frank! img]https://cdn2.scratch.mit.edu/get_image/project/881644940_100x80.png[/img copy this (add back the ['s) to have frank eat your signature!


(:>::#bb88f6) //jerry says hi

set [ v] to (:>::#bb88f6)//jerry block

:>::#bb88f6 hat
:>::#bb88f6
:>(:>::#bb88f6)::#bb88f6
:> [#aa77e5]::#bb88f6
:> (:>::#bb88f6 boolean){
:>::#bb88f6
:>::#bb88f6
:> ( :> v) (:>::#bb88a1 stack) @addInput ::#bb88f6
:> ::#bb88f6 cap
} :> (:>::#bb88f6) ::#bb88f6
:> [:> v] ::#bb88f6 cap
::#bb88f6 boolean



B̴̴̸͕͖͖͕̪͔̻͑͒̓͑͑̔̐̕͝E̵̵̴̠̺͔͎̫͖͖̝͑̽̓̀̓̚͘̚A̴̴̸͔̠̟͉͎̼͚̝̿͊̀̐͑͌̓͛͜͠N̵̸̵̦̻̺͇͉͍͓͚͕͊̐̒̒̾̀̐̿

Powered by DjangoBB