Return variables on 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?

Sorry, wrong list. My bad.

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?