Angular 17, Ngif, Ngfor, Ngswitch, Razor.
2 </div> }@else{ <div> Condition is 3 </div> } Moreover, there’s an additional detail: you have the option to assign the outcome of the controlled condition to a separate variable, as illustrated below: @if(condition == 1; as result) { <div> Condition is {{result}} </div> } 2. for statement: The