Conditional queries not working?

Is there a problem with conditional queries not working when null or zero is entered in the test value no results are shown, when values >0 are provided the query will work, Am I misunderstanding the use of conditional $_GET values?

IS the issue in the Query dialog only when testing the query or also on the actual page which runs in your browser?
And what exactly is the point of these expressions? What are you trying to achieve using them?
Screenshot 2026-02-04 at 16.49.24

Hi Teodor,
I only want to include the filter for say ‘projects.client_id’ if there is a value in the $_GET.client_id otherwise that filter should not be included in the query..

Then simply use the conditional option:

But for this, you should add each of the filters as a separate group:

with both parameters, test values given an integer, the query selects the correct records. However when only 1 parameter is provided no records are shown.

Please test this with real values on your page.

Great that works thanks Teodor, great to get proper help from a human :smiley:

2 Likes