Boolean Library
Stof's standard boolean library ("Bool").
Common Value Functions
Bool.toString(val: bool): str
Returns this boolean value converted to a string (either "true" or "false").
Bool.or(val: bool, ...): unknown
Returns the first non-empty (null or void) argument, just like the Standard Library "or" function.
#[test]
fn test() {
let val = self.dne.or(false);
assertEq(val, false);
}
Last updated
Was this helpful?