Error getting tags :
error 404Error getting tags :
error 404 isNumber | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
isNumber
Basics
Expander triangle
Type
Function
Syntax
the isNumber of value isNumber(value)
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns true if a value is a number, false if it is not.
Examples

isNumber(8) -- returns true
isNumber(1+5) -- returns true
isNumber(foo) -- returns false

Additional Comments
Expander triangle

Use the isNumber function to determine whether a value is a number. For example, attempting to do an arithmetic operation on a value that's not a number causes an error. You can check the value beforehand to prevent this.

Parameters:

The value is any source of value.

Value:

The isNumber function returns true or false.

Comments:

This function exists for compatibility with imported SuperCard projects. You can use the is a operator to validate numbers, as well as other data types.

User Comments
Expander triangle