I was wondering if people knew how to check if a URL parameter is set?
For instance, I have an application that may or may not have a query attached to the URL. Something like this:
...salesforce.com/apex/project?id=##################
I understand to grab that ID in Apex it would look something like:
public String id = apexpages.currentpage().getparameters().get('id');
What I want to do is check if that's been set.
In PHP, I know you can check for things like this:
<?php
if (isset($_GET['id'])) {
// Do something...
}
?>
I'm just looking for the Apex equivilant.
Hope I've been clear enough,
Thanks!