I need help on following thing, see am taking two outputs from webpage using get attribute “aaname” and storing the values in variables. Now I need to check if two variables are same I need write into excel one value or two variables or not matching then I write into excel some other value.
For Ex: AA001 = AA001 THEN my output on excel is AA001
AA001 = THIS IS INCORRECT THEN my output on excel is error (or) blank
it’s possible to achieve in if statement or any other. Please guide me. Thank you.
String firstString = “AA001”;
String secondString = “AA001”; // with same value
// am comparing them using if condition
if(firstString.equals(secondString)){
// then write AA001 into excel or
}else{
// don’t write anytime
}