Will VerifyMatch work for a conditional if-else statement?
In my script if verifyMatch returns false I would like the control to go to the else part of the statement.
Something like the following:
str1 = ‘Sara’
str2 = ‘Sarah’if (WebUI.verifyMatch(str1, str2, false)) {
println(‘Name matched’)
}
else {
println(‘Name not matched’)
}
If the 'if’condition is false control does not go to the ‘else’ part. The scripts fails.
How can I accomplish the else part?
Thanks for your help
Blockquote