IsPunctuation - StringUtil

From the CreationKit Wiki
Jump to navigation Jump to search

SKSE Member of: StringUtil Script

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

Syntax[edit | edit source]

Bool Function IsPunctuation(string c) native

Parameters[edit | edit source]

  • c: The character to check.

Return Value[edit | edit source]

True if the given character is punctuation. False otherwise.

Examples[edit | edit source]

; 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

Notes[edit | edit source]

None

See Also[edit | edit source]