How to check if a number is in the range of values (procedure)

Started by Eg0rGame on

Topic category: Help with modding (Java Edition)

Last seen on 20:48, 7. Mar 2024
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check if a number is in the range of values (procedure)
Thu, 06/18/2020 - 17:16 (edited)

Thanks for any replies!

Edited by Eg0rGame on Thu, 06/18/2020 - 17:16
Last seen on 23:51, 22. Jun 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if num is bigger than min…
Sun, 06/21/2020 - 19:44

if num is bigger than min num - 1 and num is smaller than max num + 1

or

if num is bigger or equal to min num and num is smaller or equal to max num