+ 1

Will "if re3 == $$ and re4 == $$ or re1 == re2" work for an if statement

"if re3 == $$ and re4 == $$ or re1 == re2" will the part that says "re3 == $$ and re4 == $

quot; be counted as one statement and "re1 == re2" be counted as a separate statement?

1st Oct 2017, 8:55 PM
vortetty
vortetty - avatar
7 odpowiedzi
+ 3
Nope. re1 == re2 gives a boolean true. if re3 is not boolean true, it will give false. And so on for all you do
2nd Oct 2017, 1:13 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Nope. The $ymbol is not in a string, so it will return an error. But assuming you put it in a string, yes
1st Oct 2017, 11:35 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Yes! :D
1st Oct 2017, 11:39 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
If you wanna make matters clearer or change order if operations use brackets
1st Oct 2017, 11:40 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
will re1 == re2 == re3 == re4 work?
1st Oct 2017, 11:44 PM
vortetty
vortetty - avatar
+ 1
so using that in an if statement would count everything before the or as one statement and everything after it a different one?
1st Oct 2017, 11:37 PM
vortetty
vortetty - avatar
0
k! thanks! you are awesome!
2nd Oct 2017, 1:10 PM
vortetty
vortetty - avatar