PDA

View Full Version : quick basic question



kraftman
June 7th, 2003, 11:27 AM
how do i do 'or' inside an if statement?

i know that strictly and is '&&' , so can i just replace that with 'or', or do i use a comma?

thoriphes
June 7th, 2003, 11:28 AM
||


if (_x > 0 || _x < 550) {
trace("_x is within movie bounds");
}

kraftman
June 7th, 2003, 11:33 AM
ok. so || is or.
thanks a lot :D

Raydred
June 7th, 2003, 04:45 PM
|| is the logical or.
&& is the logical and.

=)