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 Respuestas
+ 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