Really Basic BASIC question
why doesnt this code work
if n=0 then msgbox("No")
else msgbox("yes")
The if part works on its own but ive somehow got the else condition wrong because it doesnt work when I add that part?
Also if I want to do 2 things after an if how do I combine them so it does both on condition of that if?
e.g if n=0 then msgbox("No")
and x=1
why doesnt this code work
if n=0 then msgbox("No")
else msgbox("yes")
The if part works on its own but ive somehow got the else condition wrong because it doesnt work when I add that part?
Also if I want to do 2 things after an if how do I combine them so it does both on condition of that if?
e.g if n=0 then msgbox("No")
and x=1