Django Book 翻译
菜单>:
TOC
返回
原文:
The ``{% if %}`` tag evaluates a variable, and if that variable is true (i.e., it exists, is not empty, and is not a false Boolean value), the system will display everything between ``{% if %}`` and ``{% endif %}`` , for example:
翻译:
``{% if %}`` 标签检查(evaluate)一个变量,如果这个变量为真(即,变量存在,非空,不是布尔值假),系统会显示在 ``{% if %}`` 和 ``{% endif %}`` 之间的任何内容,例如:
备注:
译者: