Standard Library: None

Work with none values

For more information on none see the language reference.

  1. orElse

None.orElse(value, default)

Return default if value is none, otherwise return value.

None.orElse(none, "txt")
None.orElse("png", "txt")
"txt"
"png"