NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_issmallint(n) 5.0.0a naviserver "NaviServer Built-in Commands"

Name

ns_issmallint - Test to see if a number is a 'smallint'

Table Of Contents

Synopsis

Description

This command returns true only if value consists entirely of digits, and contains from 1 to 6 digits. False is returned in all other cases.

COMMANDS

ns_issmallint value

EXAMPLES

 ns_issmallint 12
 ns_issmallint thisswillreturn0

See Also

nsd