Explorar o código

Fixed #31024 -- Clarified {% firstof %} tag's handling of arguments.

Uttam Kini %!s(int64=5) %!d(string=hai) anos
pai
achega
d646e3d14f
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      docs/ref/templates/builtins.txt

+ 3 - 2
docs/ref/templates/builtins.txt

@@ -261,8 +261,9 @@ Sample usage::
 ``firstof``
 -----------
 
-Outputs the first argument variable that is not ``False``. Outputs nothing if
-all the passed variables are ``False``.
+Outputs the first argument variable that is not "false" (i.e. exists, is not
+empty, is not a false boolean value, and is not a zero numeric value). Outputs
+nothing if all the passed variables are "false".
 
 Sample usage::