util.string.void
Shared
Verifies whether the string is empty or contains only whitespaces
Syntax
local void = util.string.void(
input
)Parameters
| Type | Name | Description |
|---|---|---|
string | input | String to verify |
Returns
| Type | Name | Description |
|---|---|---|
bool | void | true if the string is empty or contains only whitespaces, false otherwise |
Examples
local void = util.string.void("")
core.engine.print("info", void) -- truelocal void = util.string.void(" ")
core.engine.print("info", void) -- truelocal void = util.string.void("Hello")
core.engine.print("info", void) -- false