Can't get this thing to verify a IF condition -_-

Hi Gents,

I'll need your help, again...

I can't get my head around this : 

I tried multiple ways to manage to enter the IFs  using conditions on the "type" value in the JSON I (try to) parse. Unfortunately this thing won't go in there.

I manage to prompt the values of the "type" key (see attachement) but I don't understand why this "HIGH" prompted in the console is any different from the "HIGH" written here :

if(IndexedTideType == "HIGH")

Feel free to have a look to this picture, showing the code, the console feedback as well as the JSON structure: 

https://ibb.co/gvkshyt

Cheers,

Nico