|
-
Feb 22nd, 2001, 08:48 PM
#1
Thread Starter
Addicted Member
Is there any kind of "end if" in java script? Is there a way if putting an if into an if? Is there anything like "Cases" from basic, in Java Script?
-
Feb 22nd, 2001, 08:56 PM
#2
Yes, you can put IF inside of IF, and you can use Case statement also. Check this http://msdn.microsoft.com/scripting/default.htm
-
Feb 25th, 2001, 04:15 PM
#3
Fanatic Member
The JavaScript version of the Select Case is:
switch(n){
case 1: //n=1
//Do something
break;
case 2: //n=2
//Do something
break;
default:
//Do something
break;
}
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
|