
07-09-2002, 12:33 AM
|
|
That Guy
|
 |
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
|
|
Quote:
Originally posted by Bhala
? and : are used together as a simple if else statment mostly used for seting vars
this.hat = (myvar<1 ? 1 : 2);
that is the same as doing this:
if(myvar<1){
this.hat=1;
}else{
this.hat=2;
}
|
<3 to you |
|
|
|