IF&ELSEIF 条件语句
if-else-elseif 条件分支结构 ; 前提分支布局
if-elseif 结构的格式如下
if-elseif-else 多个分支
I i if-else-elseif 条件分支结构
If-Then-ElseIf 多分支结构
IF THEN ELSEIF 要求使用多分
Closure Stylesheets allows the use of @if, @elseif and @else in creating conditional branches based on the value of some variables.
Closure Stylesheets让我们可以使用@if、@elseif和@else,从而基于某些变量的值来创建条件语句的分支。
You can also build more complex conditional tests using an if/elif/else (elif being the equivalent to PHP's elseif), as shown in Listing 8.
您还可以使用 if/elif/else(elif,等价于 PHP 中的 elseif)创建更加复杂的条件测试,如清单 8 所示。
应用推荐