Discuss Scratch

c0der0928
Scratcher
100+ posts

variables and other round blocks fitting into hexagon slots

if (it will run if the value is true, or the value is greater than 0) then
say [yes]
else
... // it wont
end
TheAutocorrectingCat
Scratcher
1000+ posts

variables and other round blocks fitting into hexagon slots

They’re different shapes because the circle slots are meant for text or variables, while the hexagon ones are meant for equations and sensing.
jmb1293634
Scratcher
100+ posts

variables and other round blocks fitting into hexagon slots

what would this do?
if (x position) then
...
end
medians
Scratcher
1000+ posts

variables and other round blocks fitting into hexagon slots

jmb1293634 wrote:

what would this do?
if (x position) then
...
end
It would run if the x position value is truthy, so it would run when the x position isn't 0. Also, you can already do this with the item () of () block and the item # of () in () block, but I have no idea if this is intentional.
The-Sushi-Cat
Scratcher
500+ posts

variables and other round blocks fitting into hexagon slots

medians wrote:

jmb1293634 wrote:

what would this do?
if (x position) then
...
end
It would run if the x position value is truthy, so it would run when the x position isn't 0. Also, you can already do this with the item () of () block and the item # of () in () block, but I have no idea if this is intentional.
It could also do nothing. Mind you, I have taken multiple coding classes, and I still know very little about how coding works lol-

But, it doing nothing isn't a problem. You can already make nonsense code
c0der0928
Scratcher
100+ posts

variables and other round blocks fitting into hexagon slots

medians wrote:

jmb1293634 wrote:

what would this do?
if (x position) then
...
end
It would run if the x position value is truthy, so it would run when the x position isn't 0. Also, you can already do this with the item () of () block and the item # of () in () block, but I have no idea if this is intentional.
if the x position isnt 0, then it will run …
medians
Scratcher
1000+ posts

variables and other round blocks fitting into hexagon slots

c0der0928 wrote:

medians wrote:

jmb1293634 wrote:

what would this do?
if (x position) then
...
end
It would run if the x position value is truthy, so it would run when the x position isn't 0. Also, you can already do this with the item () of () block and the item # of () in () block, but I have no idea if this is intentional.
if the x position isnt 0, then it will run …
I said this, did you mean to reply to the other person?

The-Sushi-Cat wrote:

It could also do nothing. Mind you, I have taken multiple coding classes, and I still know very little about how coding works lol-

But, it doing nothing isn't a problem. You can already make nonsense code
Yea, I mentioned that it would do nothing if the x position was 0. You can also already see this with the item () of () block.
han614698
Scratcher
1000+ posts

variables and other round blocks fitting into hexagon slots

This provides some ambiguity - it doesn't inherently make sense what this would do. In my opinion, sticking to the current method is fine:
<not <(reporter::grey) < [0]>>

The above script returns true when reporter equals ‘true’ or is greater than 0.

It returns false when reporter is any number less than 0.
c0der0928
Scratcher
100+ posts

variables and other round blocks fitting into hexagon slots

it can also detect if it also less than zero, also saying yes
jmb1293634
Scratcher
100+ posts

variables and other round blocks fitting into hexagon slots

so for all of them it would be basically:
<not <[0] = (reporter::obsolete)>>
AvidOsirianGuy
Scratcher
100+ posts

variables and other round blocks fitting into hexagon slots

The hexagon slots are meant to place boolean blocks in them, take this block for example, it's got a boolean slot.

if <> then
end
But I think you can do this with shift secrets.

Last edited by AvidOsirianGuy (Today 11:18:50)

NotK3ndricAltAgain
Scratcher
100+ posts

variables and other round blocks fitting into hexagon slots

Sorry, but no. Easy workaround:
when flag clicked
if <<(foo) > [0]> or <(foo) = [true]>> then

end
Plus it would look weird if reporters could fit into boolean slots. Yes, booleans can fit into reporter slots, but it would look weird if reporters could fit into boolean slots.

Powered by DjangoBB