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.
=)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.