Search for entries where a field value is between multiple ranges of numbers I currently have this working for a single range of numbers, but I can’t figure it out for multiple ranges. I currently have it set up like this for one range, and it works. myFieldHandle: ['and', '&gt; 0', '&lt; 10'].
I'm not sure if you can do this in the same query but you can use two queries, one for each range, and then merge them, something like this:

{% set range1 = craft.entries({myFieldHandle: ['and', '&gt; 0', '&lt; 10']}) %}
{% set range2 = craft.entries({myFieldHandle: ['and', '&gt; 20', '&lt; 30']}) %}
{% set entries = range1 |merge(range2) %}