System.Assigned - Manhunter07/MFL GitHub Wiki
Declaration
function Assigned(Value): System.Boolean = \built-in\
Description
See also: Boolean evaluation
The Assigned
function in the System
package determines whether or not the passed value is empty. It returns True
on non-empty and False
on empty (falsy) values. Emptiness is defined as either Null
, Nil
(for references), False
(for booleans), 0
(for numbers), ""
(for strings), []
(for arrays) or {}
(for records).
Remarks
- For numbers, some rounded values close to
0
may result in a0
representation, thus being treated as falsy - Strings with the value
"0"
or"False"
do not count as falsy and thus, do not cause this function to resultFalse