Link to home
Start Free TrialLog in
Avatar of russback
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.

ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial