Unwrapping


//if let 
var oliver: Int? = nil

if oliver == nil{
    oliver = 90 
}

if let ollie = oliver{
    print("Ollie is Oliver \\(ollie)")
}else{
    print("No value ")
} 

// guard let 
var olivia: Int? = 40
var jake: Int? = 69

func unwrapping(num1: Int?, num2: Int?){
    print("the unwrap values are: ")
    guard let unwrapNumnStr = num1, let hi = num2
    else{
        return
        
    }
    print("The unwrapping was successful \\(unwrapNumnStr), \\(hi) ")
}
unwrapping(num1: jake, num2: olivia)