SyntaxFix
Write A Post
Hire A Developer
Questions
//assuming b is BOOL. ternary operator helps us in any language. NSLog(@"result is :%@",((b==YES)?@"YES":@"NO"));