当前位置: 代码迷 >> 综合 >> Does Razor support elseif?
  详细解决方案

Does Razor support elseif?

热度:24   发布时间:2024-01-10 02:19:10.0

http://stackoverflow.com/questions/4530871/does-razor-support-elseif

CSharp

@if (true) {
    AlwaysDoStuff(); } else if (false) {
     NeverDoThis(); }

Visual Basic

@If True ThenAlwaysDoStuff() ElseIf False ThenNeverDoThis() End If


  相关解决方案