About Conditional Syntax;) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

About Conditional Syntax;)

Friend, what is happen if I don't use keyword 'ELSE' in that syntax?, for example, i'm just need keyword 'IF' and i don't need a keyword 'ELSE' ;)) thnkss

25th Jun 2018, 9:30 AM
Nufik
Nufik - avatar
3 Answers
+ 3
If you don't need else, just leave it out. Add your code so I can help uou more accurately.
25th Jun 2018, 9:39 AM
Andre Daniel
Andre Daniel - avatar
+ 2
If you don't need the else statement, you can omit it. Here's a sample code. https://code.sololearn.com/WcLh9GhJ1ihg/?ref=app
25th Jun 2018, 9:38 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
thanks for your helppp friends Andre Daniel and Jonathan Pizarra
30th Jun 2018, 1:47 AM
Nufik
Nufik - avatar