if else javascript example
Example 1: html if else statement example
<div *ngIf="!show">
<div>show is false</div>
</div>
<div *ngIf="show">
<div>show is ture</div>
</div>
Example 2: else if
if ( x > 10 )
{
cout << "x is greater than 10";
}
else
{
cout << "x is less than 10";
}