bool :mkbool ( mixed &ARG , … )
bool :mklog ( mixed &ARG , … )
Takes any number of arguments and converts them to booleans. If the argument is a variable reference, the variable type will be changed! Returns a copy of the leftmost argument. Typecast rules are the same as when performing implicit typecasts.
# Typecast example. :set &NUM i0 :read &NUM :writeln (:typeof $NUM) s' ' $NUM :mkbool &NUM :writeln (:typeof $NUM) s' ' :fork $NUM s'TRUE' s'FALSE'
wikistrona zmodyfikowana 2014/0601/2317