More on relational operators
Conditions can be nested at will
Good rule to use brackets if in doubt of precedence
Remember that (x==y) is only true if x eq y but (x=y) is always true
if(x==2 || y==2)
if(((x/2)==3)&& y)
if(!x && y || z)
if((!x && y) || z)
if(x==2) if(x=2)
y=y+x; y=y+x;
Previous slide
Next slide
Back to first slide
View graphic version