New course! Every coder should learn Generative AI!
Try a free lesson+ 4
It is good to put "if" without "else"?
2 Answers
+ 11
Yes, there is no problem in that. "Else" is not required.
You only use it when you want something to happen when condition in if is false.
+ 3
Thank u bro