russback
asked on
Conditional processing using parameters
This has to be one of the simplest questions around!
I am completely new to Java and am attempting to manipulate some free source code.
I am trying to implement some basic logic like this:
theString = getParameter("theString")
if (theString == "aValuePassedIn") // perform next step
else // perform alternative step
Once compiled, the script never seems to make a match with the parameter value. I have tried strings, empty strings and integers, to no avail.
I am completely new to Java and am attempting to manipulate some free source code.
I am trying to implement some basic logic like this:
theString = getParameter("theString")
if (theString == "aValuePassedIn") // perform next step
else // perform alternative step
Once compiled, the script never seems to make a match with the parameter value. I have tried strings, empty strings and integers, to no avail.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.