answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Would you be correct in saying that in an nested if statement it would read ----if and it is and it is then do this--- else do this?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is he at office a correct statement?

No, the correct statement would be "Is he at the office?" by adding the article "the" before "office."


In which of the following scenarios would you need to use a nested IF statement?

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.


Is i would give anything just to hear your voice tge correct saying?

The correct saying is, "I would give anything just to hear your voice."


Is this statement is correct-me started going to church?

No it is not, "I started going to church" would be correct


When is it best to use a case statement instead of nested if statements and vice versa?

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).


Is this statement you know you resemble a lot like my elder cousin correct and what does it mean?

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.


Is this a correct statement Schools have not yet completed?

The statement is technically correct but not clear. It would be improved by providing more context or specifying what schools have not completed.


The class were scolded. Is this statement correct?

No. We would say "The class was scolded."


David needs to create a new spreadsheet that will help him determine the payroll deductions for each employee. Which function would he use when he wants the spreadsheet to decide a deduction based on?

nested IF statement


What is a nested list?

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.


Is the statement 'He must really do love her' grammatically correct?

technically yes. but it probably doesn't mean what you think it does. you are basically saying that you are bad at loving 'him'.


Which is correct to be written on a wreath the Eddy's or the Eddys or possibly the Eddys'?

Eddys would be correct but if saying Eddy's house that would be the right answer