Simple Problem - PLEASE HELP

admin

Administrator
Staff member
Can anyone tell me what the ? and : operators do in this code:

function A(s, u)
{ var t=-1, B;
text[f]=-1;

while( ++t <= e && text[f]==-1 )
{ B = t==0 ? c : (t==1 ? d : (t==2 ? b : e)); // what do the ? and : operators do?????? :(
r( s, B, u );

if ( text[g] > 0 )
{ text[f] = B; }
}
}

Many Thanks in Advance,
Riyaz01.
 
Back
Top