I’m currently working on a project using the current if statement and i’m sure i’m making a mistake could anyone help?
if ("receiveInput" != null){
HTML.clickHtmlLink(objBrowser, ".text", "receiveInput",1);
}
else if ("receiveSyncIt..." != null) {
HTML.clickHtmlLink(objBrowser, ".text", "receiveSyncIt...",1);
}
else if ("ReceiveQueryI..." != null) {
HTML.clickHtmlLink(objBrowser, ".text", "ReceiveQueryI...",1);
}
else {
HTML.clickHtmlLink(objBrowser, ".text", "ReceiveWF_EVE...",1);
}
Since you’re interested in HTML, I’m guessing that those are keys into a parameter map. So maybe your code needs to look like this:
All those other smart people who told you to use
equalsinstead of==to compare Strings are spot on, but that’s not your issue here.