Control flow / Conditional statements / if/else statements

NSDictionary *dic = @{@"id": @42};

//assignment inside the condition is
//native C; the extra parentheses
//silence the compiler warning
NSNumber *n;
if ((n = dic[@"id"])) {
    //n is 42
}

if (!(n = dic[@"missing"])) {
    //n is nil
}