Jump to content

[SOLVED] === (or !==) versus == (or !=) Conditional Statements


urtlking2jo

Recommended Posts

The [b]==[/b] sign is for loose evaluations such as [b]8 == "8"[/b]. These two things we are evaluating are different because one is a string and one is a number, but using [b]==[/b] they are evaluated as the same.

[b]===[/b] is for type-strict evaluations where the two items being compared must be the same type.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.