Discuss Scratch
- Discussion Forums
- » Suggestions
- » This block would make a lot of things easier...
- stickfire-test
-
Scratcher
100+ posts
This block would make a lot of things easier...
It wouldn't work. A reporter can only return one value, and its value can't change depending on context.It would still work, because the knowledge in question is either 1 or 2 would work.That still wouldn't work because the value of a reporter can't simultaneously be two different things.So you want to be able to make this?<(costume #) = <<[1]::operators> or <[2]::operators>>>No support because it's not possible - what would the value of<<[1]::operators> or <[2]::operators>>be? (it can only be true or false, because it's a boolean)
The value is simutaneously 1 and 2. the value can be 1 or 2 and it still be true. I agree, that the block would make things easier<<<[1]::operators> or <<[2]::operators>or<[4]::operators>>>above shows that the value is simultaneously 1, 2, and 4 all at the same time.
Oh, I just caught that it's a boolean script. Perhaps we should make a<() or ()>Block to solve that problemwhen green flag clicked
forever
if <(some random varible) = [<<[1]::operators> or <[2]::operators>>]> then
do some random stuff
end
end
The only way it would work is if they added a whole new type of reporter for lists. But even then, the check would look something like this:
<([1] [2] ◄► :: list) contains (costume #)>
- ShinySkarmory227
-
Scratcher
100+ posts
This block would make a lot of things easier...
That's what I was going for!Sure, it's not best for everything, but it's a lot simpler this:I feel like this block's function is a bit ambiguous then! Still no support!What happens if you try to do this?It would still work, because the knowledge in question is either 1 or 2 would work.That still wouldn't work because the value of a reporter can't simultaneously be two different things.So you want to be able to make this?<(costume #) = <<[1]::operators> or <[2]::operators>>>No support because it's not possible - what would the value of<<[1]::operators> or <[2]::operators>>be? (it can only be true or false, because it's a boolean)
The value is simutaneously 1 and 2. the value can be 1 or 2 and it still be true. I agree, that the block would make things easier<<<[1]::operators> or <<[2]::operators>or<[4]::operators>>>above shows that the value is simultaneously 1, 2, and 4 all at the same time.
Oh, I just caught that it's a boolean script. Perhaps we should make a<() or ()>Block to solve that problemwhen green flag clicked
forever
if <(some random varible) = [<<[1]::operators> or <<[2]::operators> >> ]> then
do some random stuff
end
endsay <(1) or (2)>
the sprite has a choice of 1 or 2 to say. Here, I'd say that you are just as well off withsay (pick random (1) to (2))((variable) = ([1] or [2]::operators))than this:<<(variable) = [1]> or <(variable) = [2]>>
- ealgase
-
Scratcher
100+ posts
This block would make a lot of things easier...
No support, too complex.
- Cyoce
-
Scratcher
500+ posts
This block would make a lot of things easier...
No support. If I understand correctly, the proposed block converts a string to a boolean, so it can be put into an if-statement. This would be the only type-conversion block in Scratch, because Scratch automatically converts data types! It would be much easier to simply allow boolean slots to take strings.
- ChildCritic
-
Scratcher
500+ posts
This block would make a lot of things easier...
what if you wantedI feel like this block's function is a bit ambiguous then! Still no support!What happens if you try to do this?It would still work, because the knowledge in question is either 1 or 2 would work.That still wouldn't work because the value of a reporter can't simultaneously be two different things.So you want to be able to make this?<(costume #) = <<[1]::operators> or <[2]::operators>>>No support because it's not possible - what would the value of<<[1]::operators> or <[2]::operators>>be? (it can only be true or false, because it's a boolean)
The value is simutaneously 1 and 2. the value can be 1 or 2 and it still be true. I agree, that the block would make things easier<<<[1]::operators> or <<[2]::operators>or<[4]::operators>>>above shows that the value is simultaneously 1, 2, and 4 all at the same time.
Oh, I just caught that it's a boolean script. Perhaps we should make a<() or ()>Block to solve that problemwhen green flag clicked
forever
if <(some random varible) = [<<[1]::operators> or <<[2]::operators> >> ]> then
do some random stuff
end
endsay <(1) or (2)>
the sprite has a choice of 1 or 2 to say. Here, I'd say that you are just as well off withsay (pick random (1) to (2))
say <(1) or (3)>*I don't think this is a necropost. I'm bringing a new point to the discussion.*
Just cause:
*I was curious to see what 3sal2's 250th post was,and it came to this, where I always wanted to come back on.*
*skipping 2 accounts in this discussion*
- wizard192
-
Scratcher
100+ posts
This block would make a lot of things easier...
No support, it doesn't seem very useful
- Iditaroid
-
Scratcher
500+ posts
This block would make a lot of things easier...
I don't know what your point is. Can you explain some more?what if you wantedI feel like this block's function is a bit ambiguous then! Still no support!What happens if you try to do this?It would still work, because the knowledge in question is either 1 or 2 would work.That still wouldn't work because the value of a reporter can't simultaneously be two different things.So you want to be able to make this?<(costume #) = <<[1]::operators> or <[2]::operators>>>No support because it's not possible - what would the value of<<[1]::operators> or <[2]::operators>>be? (it can only be true or false, because it's a boolean)
The value is simutaneously 1 and 2. the value can be 1 or 2 and it still be true. I agree, that the block would make things easier<<<[1]::operators> or <<[2]::operators>or<[4]::operators>>>above shows that the value is simultaneously 1, 2, and 4 all at the same time.
Oh, I just caught that it's a boolean script. Perhaps we should make a<() or ()>Block to solve that problemwhen green flag clicked
forever
if <(some random varible) = [<<[1]::operators> or <<[2]::operators> >> ]> then
do some random stuff
end
endsay <(1) or (2)>
the sprite has a choice of 1 or 2 to say. Here, I'd say that you are just as well off withsay (pick random (1) to (2))say <(1) or (3)>*I don't think this is a necropost. I'm bringing a new point to the discussion.*
Just cause:
*I was curious to see what 3sal2's 250th post was,and it came to this, where I always wanted to come back on.*
*skipping 2 accounts in this discussion*
- ChildCritic
-
Scratcher
500+ posts
This block would make a lot of things easier...
my point is, this block would make many things easier. I know of the workarounds, and that it's simple, but it is also used a lot. Read the rest of the chain.I don't know what your point is. Can you explain some more?what if you wantedI feel like this block's function is a bit ambiguous then! Still no support!What happens if you try to do this?It would still work, because the knowledge in question is either 1 or 2 would work.That still wouldn't work because the value of a reporter can't simultaneously be two different things.So you want to be able to make this?<(costume #) = <<[1]::operators> or <[2]::operators>>>No support because it's not possible - what would the value of<<[1]::operators> or <[2]::operators>>be? (it can only be true or false, because it's a boolean)
The value is simutaneously 1 and 2. the value can be 1 or 2 and it still be true. I agree, that the block would make things easier<<<[1]::operators> or <<[2]::operators>or<[4]::operators>>>above shows that the value is simultaneously 1, 2, and 4 all at the same time.
Oh, I just caught that it's a boolean script. Perhaps we should make a<() or ()>Block to solve that problemwhen green flag clicked
forever
if <(some random varible) = [<<[1]::operators> or <<[2]::operators> >> ]> then
do some random stuff
end
endsay <(1) or (2)>
the sprite has a choice of 1 or 2 to say. Here, I'd say that you are just as well off withsay (pick random (1) to (2))say <(1) or (3)>*I don't think this is a necropost. I'm bringing a new point to the discussion.*
Just cause:
*I was curious to see what 3sal2's 250th post was,and it came to this, where I always wanted to come back on.*
*skipping 2 accounts in this discussion*
- Iditaroid
-
Scratcher
500+ posts
This block would make a lot of things easier...
I wrote part of this chain! This block does different things in different situations, which complicates things unnecessarily and doesn't make any sense, and Stickfiregames's point that reporters should only give out a single value stands as well.my point is, this block would make many things easier. I know of the workarounds, and that it's simple, but it is also used a lot. Read the rest of the chain.I don't know what your point is. Can you explain some more?what if you wantedI feel like this block's function is a bit ambiguous then! Still no support!What happens if you try to do this?It would still work, because the knowledge in question is either 1 or 2 would work.That still wouldn't work because the value of a reporter can't simultaneously be two different things.So you want to be able to make this?<(costume #) = <<[1]::operators> or <[2]::operators>>>No support because it's not possible - what would the value of<<[1]::operators> or <[2]::operators>>be? (it can only be true or false, because it's a boolean)
The value is simutaneously 1 and 2. the value can be 1 or 2 and it still be true. I agree, that the block would make things easier<<<[1]::operators> or <<[2]::operators>or<[4]::operators>>>above shows that the value is simultaneously 1, 2, and 4 all at the same time.
Oh, I just caught that it's a boolean script. Perhaps we should make a<() or ()>Block to solve that problemwhen green flag clicked
forever
if <(some random varible) = [<<[1]::operators> or <<[2]::operators> >> ]> then
do some random stuff
end
endsay <(1) or (2)>
the sprite has a choice of 1 or 2 to say. Here, I'd say that you are just as well off withsay (pick random (1) to (2))say <(1) or (3)>*I don't think this is a necropost. I'm bringing a new point to the discussion.*
Just cause:
*I was curious to see what 3sal2's 250th post was,and it came to this, where I always wanted to come back on.*
*skipping 2 accounts in this discussion*
- -Cherri-
-
Scratcher
100+ posts
This block would make a lot of things easier...
The block doesn't make sense, the way you used it.. and no support, easy workarounds.
- Cream_E_Cookie
-
Scratcher
1000+ posts
This block would make a lot of things easier...
Can someone explain what this does? For now, no support because if I'm confused, New Scratchers would too.
- liam48D
-
Scratcher
1000+ posts
This block would make a lot of things easier...
I see what you mean and I can see it being useful but it would break the fundamentals of programming, so no support.
- PH-zero
-
Scratcher
100+ posts
This block would make a lot of things easier...
I see what you want to achieve 
Is this what you are looking for?
———-
A value that equals more than one other value is a very interesting concept,
and i already used it in C++ (it's called bit-flgs there, and is even more flexible and complex)
However, for scratch, it would be too complicated. So no support for the original post.
Scratch on

Is this what you are looking for?
<(costume #) equals any of (myVar) [3] [] (-::operators)(+::operators) ::operators>
———-
A value that equals more than one other value is a very interesting concept,
and i already used it in C++ (it's called bit-flgs there, and is even more flexible and complex)
However, for scratch, it would be too complicated. So no support for the original post.
Scratch on

- miniepicness
-
Scratcher
1000+ posts
This block would make a lot of things easier...
I think this is getting a little off-topic
- miniepicness
-
Scratcher
1000+ posts
This block would make a lot of things easier...
I think this is getting a little off-topicOops, accidentally necroposted, sorry, also, I think you can already type in those boxes like:
<<Example> or <Example >>So, i dont think this would be needed.
- Sheep_maker
-
Scratcher
1000+ posts
This block would make a lot of things easier...
Apologies for not reading all the posts
Coding is not literal English; the if block won't be checking if the costume number is 1 or 2, even with this block. It always be false, no matter what, in this scenario.
Coding is not literal English; the if block won't be checking if the costume number is 1 or 2, even with this block. It always be false, no matter what, in this scenario.
- EDawg2011
-
Scratcher
1000+ posts
This block would make a lot of things easier...
What would the block report? There's no condition. 

- usefun
-
Scratcher
1000+ posts
This block would make a lot of things easier...
Support, there are many times where I had to write extra code because that wasn't a block.
Last edited by usefun (Jan. 11, 2024 04:27:36)
- among_us1w2
-
Scratcher
1000+ posts
This block would make a lot of things easier...
Support, there are many times where I had to write extra code because that wasn't a block.easy workaround bro
- Discussion Forums
- » Suggestions
-
» This block would make a lot of things easier...
















