Conditional queries not working?

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.