Vital.sandbox
String

string.void

Shared

Verifies whether the string is empty or contains only whitespaces


Syntax

local void = string.void(input)

Parameters

TypeNameDescription
stringinputString to be verified

Returns

TypeNameDescription
boolvoidReturns true if the string is empty or contains only whitespaces, false otherwise

Examples

local void = string.void("")
engine.print(void) --true
local void = string.void("      ")
engine.print(void) --true
local void = string.void("Hello")
engine.print(void) --false

On this page