Discuss Scratch

josueart
Scratcher
500+ posts

The "Is x between x and x?" boolean

In LEGO Spike, there is an operator called “Is x between x and x?”, and I thought it would be interesting to see it in Scratch. I think we scratchers could get a lot out of this operator.

The block is like this:

<() is between () and ()?>

It will work like this:

if <(10) is between (5) and (20)?> then
say [Yes!]
else
say [No!]
end
fvewg
New Scratcher
44 posts

The "Is x between x and x?" boolean

medians
Scratcher
1000+ posts

The "Is x between x and x?" boolean

fvewg wrote:

medians wrote:

This has been suggested multiple times:

https://scratch.mit.edu/discuss/topic/454311
https://scratch.mit.edu/discuss/topic/441430
https://scratch.mit.edu/discuss/topic/200582/
https://scratch.mit.edu/discuss/topic/24480
We are looking for the older one, not all of them
Then go to the one with the lowest topic id there.
LittleGreyCells
Scratch Team
1000+ posts

The "Is x between x and x?" boolean

Thanks for the link! It does look like this is a duplicate topic so I'll close it to keep the conversation all in one place. Please use the existing topic in the link above.

Powered by DjangoBB