Exemple de déclaration HTML If Else
<div *ngIf="!show">
<div>show is false</div>
</div>
<div *ngIf="show">
<div>show is ture</div>
</div>
Successful Sloth
<div *ngIf="!show">
<div>show is false</div>
</div>
<div *ngIf="show">
<div>show is ture</div>
</div>
int age = 30;
if(age >= 30 && age <= 80){
System.out.println("Old");
}else if(age < 30 && >= 1){
System.out.println("Young");
}else{
System.out.println("Not Supported");
}
var age=20;
if (age < 18) {
console.log("underage");
} else {
console.log("let em in!");
}