PDA

View Full Version : Simple conditional in Objective C




mike.
Oct 23, 2006, 10:57 AM
I have the following lines of code in a main().


If ( 0 == 0)
{
NSLog(@"Hello World!");
}

Could someone please help me understand why I'm getting a parse error in the line containing the {?



MrFrankly
Oct 23, 2006, 11:03 AM
I have the following lines of code in a main().


If ( 0 == 0)
{
NSLog(@"Hello World!");
}

Could someone please help me understand why I'm getting a parse error in the line containing the {?

'If' should be 'if'

mike.
Oct 23, 2006, 11:13 AM
thanks :) :rolleyes: