Last updated 1 year ago
Was this helpful?
Sidef defines the true and false boolean values, which are part of the Bool type.
In conditional expressions, anything that evaluates to zero or nothing is considered false, including empty arrays and empty hashes.
var t = true var f = false
if (0 || "0" || false || nil || "" || [] || :()) { say "true" } else { say "false" }
false