IsDigit - StringUtil
Revision as of 09:09, 15 May 2012 by imported>Kahmul (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' StringUtil Script Returns whether the character is a digit or not. (This function req...")
SKSE Member of: StringUtil Script
Returns whether the character is a digit or not. (This function requires SKSE)
Syntax[edit | edit source]
Bool Function IsDigit(string c) native
Parameters[edit | edit source]
- c: The character to check.
Return Value[edit | edit source]
True if the given character is a digit. False otherwise.
Examples[edit | edit source]
; Checks whether 1 is a digit or not.
string test = "1"
if(isdigit(test))
debug.notification("Given character is a digit!")
else
debug.notification("Given character is a letter!")
endif
Notes[edit | edit source]
None