From d646e3d14fa04b5081476b84f4500c8651c167c2 Mon Sep 17 00:00:00 2001 From: Uttam Kini Date: Mon, 2 Dec 2019 20:53:42 +0530 Subject: [PATCH] Fixed #31024 -- Clarified {% firstof %} tag's handling of arguments. --- docs/ref/templates/builtins.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 24ad8c433d..2e55b66d04 100644 --- a/docs/ref/templates/builtins.txt +++ b/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::