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 所示。
应用推荐