IsPunctuation - StringUtil

SKSE Member of: StringUtil Script

Returns whether the character is punctuation or not. (This function requires SKSE)

SyntaxEdit

Bool Function IsPunctuation(string c) native

ParametersEdit

  • c: The character to check.

Return ValueEdit

True if the given character is punctuation. False otherwise.

ExamplesEdit

; Checks whether ! is punctuation or not.
string test = "!"
if(ispunctuation(test))
  debug.notification("Given character is punctuation!")
else
  debug.notification("Given character isn't punctuation!")
endif

NotesEdit

None

See AlsoEdit