goostengine / goost

A general-purpose, extensible and customizable C++ extension for Godot Engine.
https://goostengine.github.io/
MIT License
481 stars 18 forks source link

Add `is_in_range()` function #156

Closed Xrayez closed 3 years ago

Xrayez commented 3 years ago

Allows to check whether a value is in the range of min and max values, and unlike is_between(), will print an error if the range is invalid (when min > max).

Complements #154.

See also rationale in https://github.com/godotengine/godot-proposals/issues/889#issuecomment-980580919.