View Single Post
  #12  
Old 07-09-2002, 12:33 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
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
__________________

Reply With Quote