Why isnt the else working? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why isnt the else working?

So, you have to put a sentence and if u dont put it, it would have to warn you. But whatever sentence you put, it will say the same thing. Can you please help me? https://code.sololearn.com/WujOR2E6DAao/?ref=app

11th Jul 2020, 11:34 AM
Billy Beagle
2 ответов
+ 6
You only have one = and are reassigning test. Change to == for comparison. if(test == "Apples are good")
11th Jul 2020, 11:39 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
12th Jul 2020, 9:31 AM
Billy Beagle