Discuss Scratch
- Discussion Forums
- » Suggestions
- » variables and other round blocks fitting into hexagon slots
- c0der0928
-
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
-
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
-
100+ posts
variables and other round blocks fitting into hexagon slots
what would this do?
if (x position) then
...
end
- medians
-
1000+ posts
variables and other round blocks fitting into hexagon slots
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. what would this do?if (x position) then
...
end
- The-Sushi-Cat
-
500+ posts
variables and other round blocks fitting into hexagon slots
It could also do nothing. Mind you, I have taken multiple coding classes, and I still know very little about how coding works lol-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. what would this do?if (x position) then
...
end
But, it doing nothing isn't a problem. You can already make nonsense code
- c0der0928
-
100+ posts
variables and other round blocks fitting into hexagon slots
if the x position isnt 0, then it will run …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. what would this do?if (x position) then
...
end
- medians
-
1000+ posts
variables and other round blocks fitting into hexagon slots
I said this, did you mean to reply to the other person?if the x position isnt 0, then it will run …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. what would this do?if (x position) then
...
end
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. 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
- han614698
-
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:
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.
<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
-
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
-
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
-
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 <> thenBut I think you can do this with shift secrets.
end
Last edited by AvidOsirianGuy (Today 11:18:50)
- NotK3ndricAltAgain
-
100+ posts
variables and other round blocks fitting into hexagon slots
Sorry, but no. Easy workaround:
when flag clickedPlus 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.
if <<(foo) > [0]> or <(foo) = [true]>> then
…
end
- Discussion Forums
- » Suggestions
-
» variables and other round blocks fitting into hexagon slots