When I had these two lines in my code:
if ($executed == "The command didn't exist") {
$this->core->error("In CommandRenderAllActionsInAnArray we sought
the command '$commandName' but ExteriorCommands could not find it. It
returned the value: '$executed'.", "CommandRenderAllActionsInAnArray");
I was getting this on screen:
# CommandRenderAllActionsInAnArray threw this error: In
CommandRenderAllActionsInAnArray we sought the command
'checkToSeeIfThisIsTheFirstLogin' but ExteriorCommands could not find
it. It returned the value: '1'.
But if I change the first line to this:
if ($executed === "The command didn't exist") {
then it works correctly.
Why does this need 3 equal signs? Why doesn't 2 suffice? I've done
string comparisons before and I've never had to use 3 equal signs
before.