I want to unwrap two optionals in one if statement, but the compiler complaints about an expected expression after operator at the password constant. What could be the reaso
The usage
if let x = y { }
is not equivalent to
if (let x = y) { // this is actually not allowed }
"if let" is effectively a two-word keyword, which is equivalent to
if y != nil { let x = y! // rest of if let block }