dimanche 22 avril 2018

Cannot enter if statement

As a part of a larger script following if statement:

    Logger.log(vr5);
    if (vr5 == "zwak met 5-4 krt in ♡/♠"){     
    Logger.log("in if");
    }

Logger gives: vr5: zwak met 5-4 krt in ♡/♠ But is does not enter the if Logger. "in if" does not show up Second exampel.

    Logger.log(vr7);
    if (vr7 == "3♣ (6 krt ♡ en 5-7 p), 3♢ (6 krt ♠ en 5-7 p), 3♡ (6 krt ♠ en 
    8-10 p), 3♠ (6 krt ♡ en 8-10 p)"){
    Logger.log("in if");
    }

Also in this case Logger vr7: 3♣ (6 krt ♡ en 5-7 p), 3♢ (6 krt ♠ en 5-7 p), 3♡ (6 krt ♠ en 8-10 p), 3♠ (6 krt ♡ en 8-10 p) full fills the if condition, but does not enter the if.

What i am doing wrong? Who can help me?

PS vr5 and vr7 are answers in a googleform.

Aucun commentaire:

Enregistrer un commentaire