Simple conditional in Objective C

Discussion in 'Mac Programming' started by mike., Oct 23, 2006.

  1. mike. macrumors newbie

    Joined:
    Oct 23, 2006
    #1
    I have the following lines of code in a main().

    Code:
    	If ( 0 == 0)
    	{
    	NSLog(@"Hello World!");
    	}
    Could someone please help me understand why I'm getting a parse error in the line containing the {?
     
  2. MrFrankly macrumors regular

    Joined:
    Jan 11, 2006
    #2
    'If' should be 'if'
     
  3. mike. thread starter macrumors newbie

    Joined:
    Oct 23, 2006

Share This Page