Below is my code:
def readln = javax.swing.JOptionsPane.&showInputDialog
def env = readln 'Which environment you want to test'
I entered input as syst
While i am comparing this is what i am doing
if("$env".equalsIgnoreCase("syst")){
some code
}
also tried many other ways to compare like
if($env.equalsIgnoreCase("syst"))
if(env.equalsUIgnoreCase("syst"))
if("${'env'}".equalsIgnoreCase("syst"))
but none of the above working , the condition is not satisfied. How to compare the string declared with a string entered from dialog box?