multiple AND OR how does it work?
Posted: Sat Apr 11, 2015 11:45 am
to keep code bit clearer, i am trying to implement conditions in same line.
Heres what i have currently:
by other words, c must always be true, while only a or b needs to be true in addition to c.
but is it possible to do something like:
and if it is possible to have them in same line, then how does the logic in this go, that should i put OR first, or AND first etc.
Heres what i have currently:
Code: Select all
if A = true or B=true
if C=true
thenstuffbut is it possible to do something like:
Code: Select all
if C = true AND A=true or B=true