[Solved] Finding out whether a variable is within a certain range of numbers

For my project, I need to check whether an input is within a certain range of numbers (e.g check the input is in the range 1-50, then return true.)

Is there any block/blocks that I can use for this operation?

Side note:
In the Math blocks, I saw this Constrain Block

It looks like something which I could use for my project.
I do not know what it does though. What does this block do and can I use it?


Thank you very much for this help!


Does this solution work for date ranges as well?

Sorry for being late I didn’t notice your reply !
what do you mean by " date ranges " ? @jared

I was wondering about filtering data to show only what falls on certain days between a start and end date.

i figured out how to do this using the seconds since 1970 blocks

How? If you could post this to the community, others like me could get the idea of how to do it :slightly_smiling_face:

Thanks! :blush:


check this out. if you have any questions, i’d be happy to answer them! I recently found an API to work with the EPOCH/UNIX seconds since 1970 crap but can’t seem to find it right now.

i do all the math in seconds.

my data entries are stored to airtable with one of the object properties as “seconds since 1970”


Oh, I thought it was ~15 blocks only! :sweat_smile: :joy:

Nice work btw! :+1:

I wish, there probably is a much easier way to do this!

1 Like