Discuss Scratch

medians
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

Maybe like this?
<() is between () and () [exclusively v]? ::operators> //would not include either

<() is between () and () [inclusively v]? ::operators> //would include if () was either num

<() is between () and () [including first num v]? ::operators> //would include the num in the 1st input but not the second

<() is between () and () [including second num v]? ::operators> //same as first num but the other way around
An0therRand0mC0der
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

medians wrote:

Maybe like this?
<() is between () and () [exclusively v]? ::operators> //would not include either

<() is between () and () [inclusively v]? ::operators> //would include if () was either num

<() is between () and () [including first num v]? ::operators> //would include the num in the 1st input but not the second

<() is between () and () [including second num v]? ::operators> //same as first num but the other way around
I feel this is too complicated, especially for newer scratchers. And besides, the pick random number block doesn't do this.
owlover2010
Scratcher
100+ posts

'if ( ) is between ( ) and ( )' block

I like the idea! It is workaroundable, but it would save code. I would use the following wording, though:
<() is between () and ():: operators>

Other than that, I give support!
IndexErrorException
Scratcher
500+ posts

'if ( ) is between ( ) and ( )' block

Simple workaround but in this case I 100% support this because ive had to this SO MANY TIMES.
cookieclickerer33
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

The workaround most people are suggesting is not accurate as it does not account for letters or decimals
medians
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

cookieclickerer33 wrote:

The workaround most people are suggesting is not accurate as it does not account for letters or decimals
Workarounds I think (yes I know it can be shorter and better lol, and warning big image):

For letters/words just check the value/length and if its a string (didn't want it to be too big) and compare them and use this process.
(how did this age)

Last edited by medians (May 16, 2023 01:29:23)

medians
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block


Can’t see the image? See the image here.
boileyboy
Scratcher
100+ posts

'if ( ) is between ( ) and ( )' block

i fully support
medians
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

boileyboy wrote:

i fully support
You have to state your stance on suuggestions when posting about it.
boileyboy
Scratcher
100+ posts

'if ( ) is between ( ) and ( )' block

i think it would make coding easier
Creator-H
Scratcher
100+ posts

'if ( ) is between ( ) and ( )' block

medians wrote:

Maybe like this?
<() is between () and () [exclusively v]? ::operators> //would not include either

<() is between () and () [inclusively v]? ::operators> //would include if () was either num

<() is between () and () [including first num v]? ::operators> //would include the num in the 1st input but not the second

<() is between () and () [including second num v]? ::operators> //same as first num but the other way around
Actually, like that, it's an amazing idea.
Blorpin
Scratcher
1 post

'if ( ) is between ( ) and ( )' block

yeah makes since but
-Valtren-
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

Blorpin wrote:

yeah makes since but

Please don't quote this image just to put your reaction to it, it's unconstructive.
INSERT-USER_NAME
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

-Valtren- wrote:

Please don't quote this image just to put your reaction to it, it's unconstructive.
homie what else we supposed to quote
medians
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

INSERT-USER_NAME wrote:

-Valtren- wrote:

Please don't quote this image just to put your reaction to it, it's unconstructive.
homie what else we supposed to quote
Your reaction to the images I sent above.

Blorpin wrote:

yeah makes since but
Uhm, please explain why.
-Valtren-
Scratcher
1000+ posts

'if ( ) is between ( ) and ( )' block

INSERT-USER_NAME wrote:

-Valtren- wrote:

Please don't quote this image just to put your reaction to it, it's unconstructive.
homie what else we supposed to quote
Preferably nothing, unless it's related to the topic and you wanted to reply to a point I made.

Powered by DjangoBB