Sobes.tech
Intern — Middle

Method of replacing nil with 0.0 for Double

livecode

Task condition

Write a function that takes a value of type Double? and returns a regular Double, where any nil is replaced with 0.0. When a non-nil value is passed, it should remain unchanged.