• Thanks. It actually boils down to this:

    >E.toString("this is a test of string compare")==="this is a test of string compare"
    =false
    

    If you used != / == then you'd be fine, but Espruino's doing a 'type compare' and it gets fooled by having a 'flat string' and a string. That's a nasty one - should get a fix in for it soon.

About

Avatar for Gordon @Gordon started