Skip to content

What does "if-else" statement do in programming? #5

Closed Answered by the-1Riddle
the1Riddle asked this question in Q&A
Discussion options

You must be logged in to vote

"If-else" statements are used to make decisions in code based on certain conditions.
Example: checking if a number is even or odd.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by the1Riddle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants