Checking a numeric answer in learnr that falls within a range

Am I correct in concluding that learnr does not have a way to ask a numeric question where the answer falls within a range? e.g. Using simulation to calculate a probability, the answer could be anywhere from like .23 to .25.
I believe I need to write a custom grading function with gradethis?

Looking at the docs and playing around, I think that you're right—need to write something like

pass_if(~ identical(.result %in% 40:45), "Thanks for all the fish."),