Skip Navigation

You're viewing a single thread.

68 comments
  • What if role is FILE_NOT_FOUND?!

    • if it's 'FILE_NOT_FOUND' then the string will be read as truthy and you will get 'User is admin' logged.

      • Ackshually three equal signs check for type as well. So mere truthiness is not enough. It has to be exactly true.

        Also, everyone knows FILE_NOT_FOUND isn't a string but a boolean value.

68 comments