02.06.2016, 15:05
Quote:
I don t know if this is an issue for me, but I know that
Код:
" || " Код:
" && " |
Anyway, this is a piece of text taken from Slice's Tips & Tricks thread which maybe useful for you in this case.
Quote:
A few examples: Код:
a && b(); // if a, run b. a && b() || c(); // if a, run b. otherwise, run c. a || b(); // if not a, run b. a && b() || c && d(); // if a, run b. otherwise, if c, run d. a && b() && c(); // if a, run b. if b isn't false, run c. |