
07-08-2002, 09:42 PM
|
|
Disgruntled Monkey
|
 |
Join Date: Mar 2001
Posts: 779
|
|
|
? 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;
} |
__________________
|
|
|
|