|
-
Feb 11th, 2003, 11:04 PM
#1
Thread Starter
Addicted Member
Simple If Loop Question
Hi guys,
got really a simple question what is the syntax in making a IF statement check 2 condition and 2 condition must be Valid.
if(Opt==2,i==1) ????
-
Feb 11th, 2003, 11:30 PM
#2
Addicted Member
Code:
if (Opt==2&&i==1) {
}
use the && (and) operator, both conditions must be true for it to be true..
--770
-
Feb 11th, 2003, 11:32 PM
#3
Thread Starter
Addicted Member
-
Feb 11th, 2003, 11:32 PM
#4
Addicted Member
no prob (glad to finally know a bit to help someone)
--770
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|