is-admin for core

Check if rsh is running with administrator or root privileges.

Signature

> is-admin {flags}

Input/output types:

input output
nothing bool

Examples

Return 'iamroot' if rsh is running with admin/root privileges, and 'iamnotroot' if not.

> if (is-admin) { "iamroot" } else { "iamnotroot" }
iamnotroot