217k views
4 votes
What is this asking me? When I look at my code, what should I be looking for?

What is this asking me? When I look at my code, what should I be looking for?-example-1

1 Answer

3 votes

When your call condition you're asking your computer to test something I.e, if/ else

if ( i ==5)

{

}

else

{

}

this is what we call a condition. when it calls a function you're asking your computer to determine if it's true or false, yes or no, if it's equal to this if the condition is met (true) do something. They're asking you to detail what conditions (What is your computer testing to determine true or false)

In the example i gave, the condtion would be " If I = 5 do something. If it doesnt do something else. Each time it runs it will test if thie condition is true or false and execute the result.

User Igor Zubchenok
by
7.7k points