Return variables on GET-request

I'm making a GET-request to http://url/check, and would like return
either "&show=1&" or "&show=2&", depending on if an IF statement in my
check-method is true or not.

Anyone know how to make this happen?