Learn Objective C Tutorial 1.12 Nested If Else

preview_player
Показать описание
Learn Objective C Tutorial 1.12 Nested If Else

This video is from the mybringback series: Objective C Programming at:

follow us:

Other channels:

Рекомендации по теме
Комментарии
Автор

In programming when you do not use curly brackets "{ }" after an if or else statement, only the first line after that is executed, so:

if (x > y)
//do line 1
//do line 2
// do line n
will only execute the first line.

To execute the others, you use the curly brackets to block the code


if (x > y)
{
//do line 1
//do line 2
// do line n
}

Great tuts!!!

leorezabraba
Автор

Turning on the Interactive Transcript is a bad idea. Lol'd hard.
Great tutorials btw. :D

faesaia
Автор

Hallo men. Your Tutorials are the
I have a At the "normal" if/else you put a "{" after the "else". Here at the second "else" you dont put a "{" after it and then write at the next line the "NSLog. You only put one "}" at the end to close the "whole thing" the nest. Why? Is it not necessary?

Thanks!!!!

Sed
Автор

if i do this I get a warning thats says: implicit declaration of function 'NSlog' is invalid in C99 what do i Wrong please help me.

bramh
join shbcf.ru