Módulo:Paramtest/doc
Ir para navegação
Ir para pesquisar
Esta é a página de documentação para Módulo:Paramtest
Módulo:Paramtest é solicitado por
.Este módulo é um módulo de apoio para ser usado por outros módulos; ele pode não ser projetado para ser invocado diretamente. See RuneScape:Lua/Helper modules for a full list and more information.
Módulo | Função | Tipo | Uso | |
---|---|---|---|---|
Paramtest | is_empty(arg) | String | Returns true if arg is not defined or contains only whitespace | |
has_content(arg) | String | Returns true if arg exists and does not only contain whitespace | ||
default_to(arg1,arg2) | String, Any value | If 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; for technical reasons, all nil are replaced with false |