ganapati_bhat
10 years agoOccasional Contributor
need help regarding string check in if statement -Javascript
Hi,
I have a situation where i need to fetch the value from excel and need to check with value mentioned in the string and work on the application . Like,
var valueFromExcel='Male';
if(valueFromExcel=="Male"){
do something on the application
}
if(valueFromExcel=="Female"){
do something on the application
}
I am not able to check the value. My script is running for both male and Female.
Please help me regarding string equals using testComplete.
I have a situation where i need to fetch the value from excel and need to check with value mentioned in the string and work on the application . Like,
var valueFromExcel='Male';
if(valueFromExcel=="Male"){
do something on the application
}
if(valueFromExcel=="Female"){
do something on the application
}
I am not able to check the value. My script is running for both male and Female.
Please help me regarding string equals using testComplete.