Toggle menu
45
232
3
1.3K
EmrysSMP Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Paramtest/doc

From EmrysSMP Wiki

This is the documentation page for Module:Paramtest

This module is a helper module to be used by other modules; it may not designed to be invoked directly. See Star Citizen:Lua/Helper modules for a full list and more information.

FunctionTypeUse
is_empty(arg)StringReturns true if arg is not defined or contains only whitespace
has_content(arg)StringReturns true if arg exists and does not only contain whitespace
default_to(arg1,arg2)String, Any valueIf arg1 exists and does not only contain whitespace, the function returns arg1, otherwise returns arg2
defaults{ {arg1,arg2},...}{String, Any value}...Does the same as default_to() run over every table passed
table_is_empty(arg)TableReturns true if the table has no content, it does not check if the content of the table contains anything
table_has_content(arg)Tablereturns true if the table has content, it does not check if the content of the table contains anything