IsPunctuation - StringUtil

From Creation Kit
Jump to: navigation, search

SKSE Member of: StringUtil Script

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

Syntax

Bool Function IsPunctuation(string c) native

Parameters

  • c: The character to check.

Return Value

True if the given character is punctuation. False otherwise.

Examples

; 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

None

See Also