NSDictionary *dic = @{@"id": @42};//assignment inside the condition is//native C; the extra parentheses//silence the compiler warningNSNumber *n;if ((n = dic[@"id"])) { //n is 42}if (!(n = dic[@"missing"])) { //n is nil}