From 591083a87fe45cc53ce8841b223d9bb43dccdf05 Mon Sep 17 00:00:00 2001
From: Colin Kuskie
Date: Mon, 24 Jan 2005 23:22:22 +0000
Subject: [PATCH] define truth for template variables
---
lib/WebGUI/i18n/English/WebGUI.pm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm
index 587af5e98..5cb3b44f5 100644
--- a/lib/WebGUI/i18n/English/WebGUI.pm
+++ b/lib/WebGUI/i18n/English/WebGUI.pm
@@ -2817,6 +2817,15 @@ To programmers conditions are nothing new, but to designers they can often be co
Example: <tmpl_if isTrue> It was true!<tmpl_else> It was false! </tmpl_if>
+Truth or falsehood is determined by the following rules:
+
+Variables not used in this template are false.
+Variables which are undefined are false.
+Variables which are empty are false.
+Variables which are equal to zero are false.
+All other variables are true.
+
+
Loops
Loops iterate over a list of data output for each pass in the loop. Loops are slightly more complicated to use than plain variables, but are considerably more powerful.
@@ -2860,7 +2869,7 @@ Loops come with special condition variables of their own. They are __FIRST__, __
|,
- lastUpdated =>1102704289,
+ lastUpdated =>1106608811,
},
'354' => {