Chapter 4 $expr lab

Can I get more information as to how to know what expression goes first in the comparason?

In this lab, I entered the following queries into my terminal.

<deleted, reason: potential answer>

This returned 0.

Then I entered:

<deleted, reason: potential answer>

This returned 1299 which is the right answer. I am wondering how to determine the order for the operators?

Hi David, when using $eq, the order doesn’t matter, as x=y also implies y=x. But in your case there is a typo in your command, please check the spelling of “permalink” in both the commands. It should be $permalink instead of $parmalink.
<deleted, reason: potential answer>
is same as
<deleted, reason: potential answer>

In case of any doubts please feel free to reach out.

Thanks. Regards.
Sourabh Bagrecha,
Curriculum Services Engineer.

1 Like

Oh WOW!!! don’t I feel like a fool… Thanks!!