Discuss Scratch
- Discussion Forums
- » Suggestions
- » Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
- the2000
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
And because of truthy and falsy variables, putting round variables into boolean inputs would not cause a syntax error. There actually is a way to put a round variable into a boolean input in the current version of Scratch. I'll tell you if you're interested.Yes, I do know what they are.Truthy and falsy variables are a thing, look it up if you don't know what they are I don't support this. Scratch's blocks are designed to prevent the (almost-forgotten) syntax error.
Edit: Ayy, king of the page!
Last edited by the2000 (Feb. 5, 2021 03:17:48)
- Ankit_Anmol
- Scratcher
500+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
ULTRA SUPPORT!!!!!!! (i too made a topic but… )
- Vienradze
- Scratcher
500+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
You mean - a topic about the same thing? ULTRA SUPPORT!!!!!!! (i too made a topic but… )
- Hearst10
- Scratcher
100+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
you CAN do the second one Support! Why this?:ask [1 or 2?] and waitNot this?
if <(answer) = [1]> then
broadcast [1 v]
else
broadcast [2 v]
endask [1 or 2?] and wait
broadcast (answer)
the ST wants you to be constructive.I think it's been explained well enough here already.please be constructive by saying why you support surpport!
this suggestion doesn't let you make syntax errors. I don't support this. Scratch's blocks are designed to prevent the (almost-forgotten) syntax error.
Huge support.
please be constructive by saying why you support ULTRA SUPPORT!!!!!!! (i too made a topic but… )
- Vienradze
- Scratcher
500+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
It's useful to write your arguments is you have something new to say. But if you don't, what's so constructive about 10 people writing the same thing?you CAN do the second one Support! Why this?:ask [1 or 2?] and waitNot this?
if <(answer) = [1]> then
broadcast [1 v]
else
broadcast [2 v]
endask [1 or 2?] and wait
broadcast (answer)the ST wants you to be constructive.I think it's been explained well enough here already.please be constructive by saying why you support surpport!this suggestion doesn't let you make syntax errors. I don't support this. Scratch's blocks are designed to prevent the (almost-forgotten) syntax error.Huge support.please be constructive by saying why you support ULTRA SUPPORT!!!!!!! (i too made a topic but… )
- PGBFLITE6373
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
tell meAnd because of truthy and falsy variables, putting round variables into boolean inputs would not cause a syntax error. There actually is a way to put a round variable into a boolean input in the current version of Scratch. I'll tell you if you're interested.Yes, I do know what they are.Truthy and falsy variables are a thing, look it up if you don't know what they are I don't support this. Scratch's blocks are designed to prevent the (almost-forgotten) syntax error.
Edit: Ayy, king of the page!
- Rendangbike2
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
Lol, sorry but my point still standsI think you can already do that, but you can't do it with the Support! Why this?:
snipwhen I receive [ v]block.
- the2000
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
I don't think you were the person I was talking to, but whatever.tell me And because of truthy and falsy variables, putting round variables into boolean inputs would not cause a syntax error. There actually is a way to put a round variable into a boolean input in the current version of Scratch. I'll tell you if you're interested.
if (item (1 v) of [list v] :: list) thenFor some reason you can do this. Try it out in the Scratch editor if you don't believe me.
end
- PGBFLITE6373
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
has i agree with you it wierd, its prob a screw-up by st,I don't think you were the person I was talking to, but whatever.tell me And because of truthy and falsy variables, putting round variables into boolean inputs would not cause a syntax error. There actually is a way to put a round variable into a boolean input in the current version of Scratch. I'll tell you if you're interested.if (item (1 v) of [list v] :: list) thenFor some reason you can do this. Try it out in the Scratch editor if you don't believe me.
end
- gosoccerboy5
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
No, it's intentional, it returns if that specific list item exists.
- the2000
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
It would be difficult to accidentally program that in and then not fix it when people start pointing it out. Anyway, you can see that it returns false with values like 0 and “false”, while returning true with other ones. That's how Scratch could (and I guess if this is any indication, does) use truthy and falsy variables to avoid syntax errors.has i agree with you it wierd, its prob a screw-up by st, I don't think you were the person I was talking to, but whatever.if (item (1 v) of [list v] :: list) thenFor some reason you can do this. Try it out in the Scratch editor if you don't believe me.
end
- PGBFLITE6373
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
yeah i agree with you now beacause of this blockIt would be difficult to accidentally program that in and then not fix it when people start pointing it out. Anyway, you can see that it returns false with values like 0 and “false”, while returning true with other ones. That's how Scratch could (and I guess if this is any indication, does) use truthy and falsy variables to avoid syntax errors.has i agree with you it wierd, its prob a screw-up by st, I don't think you were the person I was talking to, but whatever.if (item (1 v) of [list v] :: list) thenFor some reason you can do this. Try it out in the Scratch editor if you don't believe me.
end
set x to <touching color [#706dbc] ?>is equal to zero
Last edited by PGBFLITE6373 (Feb. 5, 2021 15:46:15)
- Maximouse
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
This is definitely not the reason why it exists – you can easily check if an index is out of range anyway (you can't even use this feature to do that because it will also return false if the item at that position equals “false”), and for checking if an item is in a list there is a “contains” block. No, it's intentional, it returns if that specific list item exists.
They might just consider it not worth fixing. If it was intentional they would also add this feature to normal variables, not just list items, which means that even if it was originally done intentionally, they just forgot to remove it. It would be difficult to accidentally program that in and then not fix it when people start pointing it out.
Edit: those blocks had the output type set to null (meaning “any”) instead of string since they were added, so it's almost definitely an oversight.
Last edited by Maximouse (Feb. 5, 2021 16:06:28)
- Vienradze
- Scratcher
500+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
What the…yeah i agree with you now beacause of this blockIt would be difficult to accidentally program that in and then not fix it when people start pointing it out. Anyway, you can see that it returns false with values like 0 and “false”, while returning true with other ones. That's how Scratch could (and I guess if this is any indication, does) use truthy and falsy variables to avoid syntax errors.has i agree with you it wierd, its prob a screw-up by st, I don't think you were the person I was talking to, but whatever.if (item (1 v) of [list v] :: list) thenFor some reason you can do this. Try it out in the Scratch editor if you don't believe me.
endset x to <touching color [#706dbc] ?>is equal to zero
- the2000
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
I would believe that it was added as an experiment and then they forgot to remove it. I still doubt that it was entirely unintentional, because I'm almost certain that reporters are specifically written to not fit into boolean slots and that this is a hard-coded exception. It is definitely a cool-looking workaround to the current lack of boolean variables, at least.They might just consider it not worth fixing. If it was intentional they would also add this feature to normal variables, not just list items, which means that even if it was originally done intentionally, they just forgot to remove it. It would be difficult to accidentally program that in and then not fix it when people start pointing it out.
- gosoccerboy5
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
If you place a boolean in a text input it reads it as “true” or “false” but if you put it in a number input it reads it as 1 or 0. What the…
- Maximouse
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
It isn't hardcoded, every reporter needs to have I still doubt that it was entirely unintentional, because I'm almost certain that reporters are specifically written to not fit into boolean slots and that this is a hard-coded exception.output set to String to not fit into Boolean slots, and these block have it set to null instead.
- the2000
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
Oh, well there's the answer. Either way, it proves that Scratch already does use truthy and falsy properties to avoid syntax errors with booleans, and that this would be very easy to implement.It isn't hardcoded, every reporter needs to have I still doubt that it was entirely unintentional, because I'm almost certain that reporters are specifically written to not fit into boolean slots and that this is a hard-coded exception.output set to String to not fit into Boolean slots, and these block have it set to null instead.
- sathvikrias
- Scratcher
500+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
https://en.scratch-wiki.info/wiki/Hidden_Features#Code_EditorOh, well there's the answer. Either way, it proves that Scratch already does use truthy and falsy properties to avoid syntax errors with booleans, and that this would be very easy to implement.It isn't hardcoded, every reporter needs to have I still doubt that it was entirely unintentional, because I'm almost certain that reporters are specifically written to not fit into boolean slots and that this is a hard-coded exception.output set to String to not fit into Boolean slots, and these block have it set to null instead.
- the2000
- Scratcher
1000+ posts
Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns
bro i wrote thathttps://en.scratch-wiki.info/wiki/Hidden_Features#Code_EditorOh, well there's the answer. Either way, it proves that Scratch already does use truthy and falsy properties to avoid syntax errors with booleans, and that this would be very easy to implement.It isn't hardcoded, every reporter needs to have I still doubt that it was entirely unintentional, because I'm almost certain that reporters are specifically written to not fit into boolean slots and that this is a hard-coded exception.output set to String to not fit into Boolean slots, and these block have it set to null instead.
- Discussion Forums
- » Suggestions
- » Please allow us to put round blocks (e.g. variables, answer, custom block args, etc.) in the place of variable/list dropdowns