test of equality

Hi everyone. In a test of equality, what's the difference between
if("Sentence"==$sentenceString) and if($sentenceString=="Sentence")?
I thought the order doesn't matter in "if" statement but apparently it does. Could someone explain it to me in what situation one may use the first/second one? Thanks!!
Last edited on
This is a C++ forum. What language are you using?
Topic archived. No new replies allowed.