Core Function isDigit
From Sputnik Wiki
(Difference between revisions)
(→Remarks) |
m (1 revision) |
Revision as of 21:40, 11 August 2014
isDigit( <expression> )
Contents |
Description
Checks if string only contains numbers.
Parameters
expression
The string to use.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
Remember this function will NOT return true if the string is a valid float with decimal point if you wish to also allow floats check out isNumeric( <expression> ) or isFloat( <expression> ).
Example
$str = "The quick brown fox"; MsgBox( isDigit($str) );