I’m looking to make an if else statement that does one action if it detects a query string and another action if there isn’t one detected. My trouble is in the syntax, I haven’t been able to find a good example.
I’m looking for something along the lines of:
if (requisition_id = null)
do this action
else
do this action
I’m basically looking for the syntax needed to identify the querystring, the rest of the code I’ve got ready for it.
Any help appreciated
Thanks
To read the value of a query argument, use the
QueryStringcollection of theRequestobject. If it returnsnullfor the query argument name, then it was not supplied in the URL.