vendredi 25 août 2017

How can I use if, else if in Angular2

I want to use elseif statement just like this in Angular2.

if(name = 'a'){
  printf("1");
} else if(name = 'b') { 
  printf("2");
} else {
  printf("other");
}

Please!!

Aucun commentaire:

Enregistrer un commentaire