uce/site/doc/pages/first.txt
2026-06-16 12:21:31 +00:00

19 lines
413 B
Plaintext

:sig
String first(String... args)
:params
args : a variable number of String arguments
return value : first of the 'args' that was not empty.
:see
>string
:content
Returns the first non-empty string from the provided arguments.
Leading and trailing whitespace are ignored when checking emptiness, so a string containing only whitespace counts as empty.
:example
print(first("", "fallback", "other"), "\n");