creates an if statement, with the argument as a variable or method. You must close an if statement with an {end:} statement, and you may use {else:} with it.
Пример 39-1. Setting variables for if
|
Пример 39-2. The template
|
Пример 39-3. Compiled template
|
Пример 39-4. The output
|
| Пред. | Начало | След. |
| {foreach:variable,key,value} | Уровень выше | {end:} |