New course! Every coder should learn Generative AI!
Try a free lesson+ 2
What's the use of if statement
2 Answers
+ 2
they are conditional statements, the code inside if statements will be executed if it matched any of the condition in the if statement