[Blazor] @if, else if, else, @switch


[Blazor] @if, else if, else, @switch

Blazor 제어구조 코드블럭으로, 인라인 C#은 다음과 같습니다. @if (value % 2 == 0) { string 구문 } @if (value %2 == 0) { string 구문 1 } else if (value >= 1000) { string 구문 2 } else { string 구문 3 } @switch (value) { case 1: string 구문 1 break; case 2: string 구문 1 break; case 3: string 구문 1 break; }

[Blazor] @if, else if, else, @switch에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : [Blazor] @if, else if, else, @switch