Discuss Scratch
- PikmanDude
-
Scratcher
100+ posts
'if ( ) is between ( ) and ( )' block
<if [ ] is between [] and [ ]>
This Boolean sensor would read true if the first value is greater than the lesser of the two subsequent values, but lesser than the greater of the following values. In short, it would be true if the first value is numerically between the latter two inputs. It would be very useful in creating various types of sensors for use in games, simulations, etc. I, myself, am working on a game where this would be useful, as I have gotten to a point where the arbitrary assortment of ‘less than’s and ‘greater than’s is just too great for any sense to be made of the script.
Last edited by PikmanDude (May 23, 2016 14:00:12)
- johndeere47
-
Scratcher
100+ posts
'if ( ) is between ( ) and ( )' block
.
Last edited by johndeere47 (Aug. 27, 2023 01:46:47)
- A-no-meep
-
Scratcher
100+ posts
'if ( ) is between ( ) and ( )' block
The “if” at the front is unnecessary text that confuses the purpose of this block.
I support this idea, but want the block's starting if removed, making it
EDIT: I suppose I should explain myself better:
is what I want the block to be called if it was to be added. Edited the above use the new notation. (Agree with post below this one.)
I support this idea, but want the block's starting if removed, making it
if([] is between [] and [] ::operators)or
wait until <[] is between [] and [] ::operators>or wherever you decide to put it instead.
EDIT: I suppose I should explain myself better:
<[] is between [] and [] ::operators>
is what I want the block to be called if it was to be added. Edited the above use the new notation. (Agree with post below this one.)
Last edited by A-no-meep (May 24, 2016 19:30:24)
- miniepicness
-
Scratcher
1000+ posts
'if ( ) is between ( ) and ( )' block
The “if” at the front is unnecessary text that confuses the purpose of this block.It is suppost to be a boolean, It should be called
I support this idea, but want the block's starting if removed, making itif([] between [] and [] ::operators)orwait until <[] between [] and [] ::operators>or wherever you decide to put it instead.
() is between () and ()?
Last edited by miniepicness (May 23, 2016 19:52:15)
- wayyyy
-
Scratcher
500+ posts
'if ( ) is between ( ) and ( )' block
No support. It is simple to work around, complex, and not very useful.
- stickfiregames
-
Scratcher
1000+ posts
'if ( ) is between ( ) and ( )' block
No support, the workaround is really easy and obvious.
- DaSpudLord
-
Scratcher
1000+ posts
'if ( ) is between ( ) and ( )' block
No support. The workaround is super easy.
- LostLittleChick738
-
Scratcher
500+ posts
'if ( ) is between ( ) and ( )' block
What's the use of the block? The workaround is simple:

The block does a lot for just a small thing. Why do we need that block anyways?
EDIT: In my opinion, no support.
The block does a lot for just a small thing. Why do we need that block anyways?
EDIT: In my opinion, no support.
Last edited by LostLittleChick738 (July 18, 2020 11:40:06)
- HTML-Fan
-
Scratcher
1000+ posts
'if ( ) is between ( ) and ( )' block
When it's exactly the maximum or the minimum, what does it return? I don't think that we really need that block, so no support.
- InventorTeen
-
New Scratcher
67 posts
'if ( ) is between ( ) and ( )' block
I don't support it, I think (in my opinion) its a lot of work for such a small thing. The workaround may be a little hassle but adding the block would be even more hassle on the Scratch Team's part. It is simple to work around, complex, and not very useful.
- Botcho_Otkho
-
Scratcher
1000+ posts
'if ( ) is between ( ) and ( )' block
<snip>Please, don't necropost. What you said was already covered in the posts above yours.
When it's exactly the maximum or the minimum, what does it return?I agree that this is one of this suggestion's problems. By using the workaround, one could make this script work as desired.
- HTML-Fan
-
Scratcher
1000+ posts
'if ( ) is between ( ) and ( )' block
By using the workaround, one could make this script work as desired.I just say: do {} or {} and <()mod()>
- Byron_Inc
-
Scratcher
1000+ posts
'if ( ) is between ( ) and ( )' block
I think there's no necroposts in the Suggestions sub-forum as the suggestion won't be outdated.<snip>Please, don't necropost.
- InventorTeen
-
New Scratcher
67 posts
'if ( ) is between ( ) and ( )' block
Exactly! Its not nectroposting unless the forum is meant to be closed but the ST haven't got round to it yet. I think well know users in the forum should have the option to close things.I think there's no necroposts in the Suggestions sub-forum as the suggestion won't be outdated.<snip>Please, don't necropost.
- Botcho_Otkho
-
Scratcher
1000+ posts
'if ( ) is between ( ) and ( )' block
The post pointed out a workaroud that was already stated above. That is unconstructive and is thus considered necroposting.I think there's no necroposts in the Suggestions sub-forum as the suggestion won't be outdated.<snip>Please, don't necropost.
- HardBone
-
New Scratcher
3 posts
'if ( ) is between ( ) and ( )' block
Support for this, the workaround as shown below is kinda tiring.<<[3] > [1]> and <<[3] < [5]>
exactly!
support
Last edited by HardBone (Aug. 21, 2022 20:28:08)
- -An_Unnamed_User-
-
Scratcher
43 posts
'if ( ) is between ( ) and ( )' block
workaround:
if <<[] > [] :: operators> and <not <[] > []> :: operators> :: operators> then
do something :: grey
end :: control
- HardBone
-
New Scratcher
3 posts
'if ( ) is between ( ) and ( )' block
workaround:But it could still be sort of confusing, I was trying to make a project earlier but while I was using this workaround, I just couldn't figure it out!if <<[] > [] :: operators> and <not <[] > []> :: operators> :: operators> then
do something :: grey
end :: control



?








