NaviServer Programmable Web Server

ns_issmallint(n)

NaviServer Built-in Commands – 5.0.0a


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

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