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?
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?
||
if (_x > 0 || _x < 550) {
trace("_x is within movie bounds");
}
ok. so || is or.
thanks a lot
|| is the logical or.
&& is the logical and.
=)
:: Copyright KIRUPA 2024 //--