From: Keats <ke...@ea...> - 2003-07-23 17:18:36
|
The #default directive does something like this, although it doesn't deal with null, just undefined: #default $myVar="Not specified" $myVar We've talked about this over the years. It's kind of like the NVL function in Oracle. A simple function for this might be nice: $nvl($myVar, "*NO VALUE*") as an abbreviated form of #if ($myVar){$myVar} else {*NO VALUE*} I'd endorse something like this. Keats |