I have an app with which I want to be able to pass a parameter to and when it executes use that parameter to determine what it does next.

Any help would be much appreciated, thanks in advance.