Question: I was given this code:

```
if (num == 100 && num== 200 && num==300) {
  console.log('it works!');
}

```

the condition needs to be true so that it prints "It works!" in the console.

I got these codes here and would really like to know how it works. Also, what's the difference between valueOf and toString?

Any explanation would be much appreciated.
Thanks!

```
const num = {
  value: 0,
  valueOf: function() {
    this.value += 100;
    return this.value;
  }
}
if (num == 100 && num== 200 && num==300) {
  console.log('it works!');
}

```

-

```
const num = {
  value: 0,
  toString: function() {
    this.value += 100;
    return this.value;
  }
}
if (num == 100 && num== 200 && num==300) {
  console.log('it works!');
}

```

Answer: 
I found a solution. I did install the Selenium library for VBA and changed the InternetExplorer for Chrome. 

Now, I click on the respective link with the Xpatch (driver.FindElementByXPath("XPATCH").Click).

Worked like a charm! 

Thanks!!
try to refer an example below may solve your issue.

```
Sub demo()

    Dim IE As InternetExplorer
    Dim html As HTMLDocument

    Set IE = New InternetExplorerMedium
    IE.Visible = True
    IE.Navigate2 "D:\Backup20190913\tests\265.html"

    Do While IE.Busy
        Application.Wait DateAdd("s", 1, Now)
    Loop
   Dim objTag As Object
    For Each objTag In IE.document.getElementsByTagName("span")
    If InStr(objTag.outerHTML, "Invoiced") > 0 Then

        objTag.Click
        Exit For

    End If
Next
    Stop
    IE.Quit
    Set IE = Nothing

End Sub

```

It is able to click your span tag.

Output:

[![enter image description here](https://i.stack.imgur.com/zedsU.png)](https://i.stack.imgur.com/zedsU.png)