What you are asking would be not be a nested if then else statement, in pseudocode what you are asking would be:
if condition then
do this
else
do that
[this is pseudo code because the 'and' would be rendered differently in other languages and there potentially would be statement terminators, etc]
A nested if statement would be:
if condition1 then
if condition2 then
do this
else
do this
else
do that
The second if statement is nested within the first one, clearly the nesting can go on quite deeply.
No, the correct statement would be "Is he at the office?" by adding the article "the" before "office."
You use a nested if when the condition is dependent upon another condition. For example: if (ptr != nullptr) { // ptr is non-null -- test the value it refers to if (ptr* == 0) { // the value pointed to by ptr is zero } else { // the value pointed to by ptr is non-zero } } In this case, the alternative to a nested if creates an inefficiency: if (ptr != nullptr && *ptr == 0 ) { // ptr is valid and refers to the value zero } else if (ptr != nullptr) { // ptr is valid and refers to a non-zero value } In this example, the expression "ptr != nullptr" is evaluated twice when ptr is valid and refers to a non-zero value. The nested if only evaluates this expression one time.
The correct saying is, "I would give anything just to hear your voice."
No it is not, "I started going to church" would be correct
You would want to do this when avoiding negativity or redundent statements. For instance, when taking any kind of survey, you would not to ask any type of question-- you would want to make a statement and using a grading scale to answer that statement (strongly agree, agree, etc).
No, it is incorrect. The correct phrase would be: "You resemble my eldest cousin." Someone is basically saying you look like one of their cousins, who is also older than the speaker.
The statement is technically correct but not clear. It would be improved by providing more context or specifying what schools have not completed.
No. We would say "The class was scolded."
nested IF statement
A list within a list (or a list within another nested list).A list contains entries, which can be anything.Suppose those entries were lists themselves. Then they would be nested lists.
technically yes. but it probably doesn't mean what you think it does. you are basically saying that you are bad at loving 'him'.
Eddys would be correct but if saying Eddy's house that would be the right answer