template::util::negative (public)

 template::util::negative value

Defined in packages/acs-templating/tcl/date-procs.tcl

Check if a value is less than zero, but return false if the value is an empty string.

Parameters:
value (required)

Testcases:
util_negative
Source code:
    if {$value eq ""} {
        return 0
    } else {
        return [expr {[util::trim_leading_zeros $value] < 0}]
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: