System module

get_username

procedureSource

Returns the name of the current user and whether the lookup worked.

Example↗
name, ok := get_username();
assert(!ok || name.count > 0);
get_username :: () -> (string, success: bool)

Returns

string
success: bool

See also