IsDigit - StringUtil
SKSE Member of: StringUtil Script
Returns whether the character is a digit or not. (This function requires SKSE)
SyntaxEdit
Bool Function IsDigit(string c) native
ParametersEdit
- c: The character to check.
Return ValueEdit
True if the given character is a digit. False otherwise.
ExamplesEdit
; 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
NotesEdit
None