<ng-container *ngIf="(value1 || value2); else showDefault">
<ng-container *ngIf="value3!=null && value4==null; else showValue4">
</ng-container>
<ng-template #showValue4>
</ng-template>
</ng-container>
<ng-template #showDefault>
</ng-template>