Relative Content

Tag Archive for rif-statementoperators

Using 3+ AND OR statements in an if statement

I’m trying to do something where I have 3 variables (x, y and z) that could equal anything between 1 and 0. I want to create an if statement where it does ((z=x OR z=y) AND z=1). So x=1, y=0, z=1 would be true, but x=0, y=0, z=1, or x=0, y=0, z=0 wouldn’t.