UCE Docs / first

Signature

String first(String... args)

Parameters

args : a variable number of String arguments
return value : first of the 'args' that was not empty.

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");
Output
fallback