New course! Every coder should learn Generative AI!
Try a free lesson+ 5
Please why is the condition always returning true
4 Answers
+ 6
This is how it should be coded. 'Yes' being non-zero is true.
if(goat=='yes'||goat=='Yes'){
+ 4
thanks a lot
+ 3
I appreciate
0
Cool