Comunidad de diseño web y desarrollo en internet online

ayundenme a entender esta condición por favor

Citar            
MensajeEscrito el 20 Sep 2006 11:59 pm
this.ypos ? this._y += this.ypos/velocidad : (this._y=newy, delete this.onEnterFrame);

priemra vez que me encuentro con una condición así.

Gracias.

Por kiltroconpulgas

96 de clabLevel



 

safari
Citar            
MensajeEscrito el 21 Sep 2006 02:33 am

Código :

this.ypos ? this._y += this.ypos/velocidad : (this._y=newy, delete this.onEnterFrame); 


es igual a:

Código :

if (this.ypos !=0)
{
   this._y += this.ypos/velocidad;
} 
else
{
  this._y=newy; 
  delete this.onEnterFrame
}; 


saludos

PD: por cierto, muy mala práctica de codificación emplearon alli.

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.