What is a 'Condition' in coding?

Asked by emeka_nwankwo · 6 months ago

1 Answer

40
amorebise · 6 months ago Top Answer

A condition is a question that results in a Yes or No. 'Is the score greater than 50?' 'Is it raining?' 'Did the user click the button?'

Your program uses these answers to decide which way to go. It's the 'If' part of 'If-Else'. Without conditions, your program would just do the same thing every time.

Log in to add a comment.