hi! i am trying to realize a simple if statement. but i just cant get it to work.
$(eval
var a = "hello";
if (a === "hello"){"it works";}
else {"this shouldnt show up";}
)
pls send hALP. thanks in advance!
2 replies
Quirky Fox
Invalid variable only shows up if the nightbot variable doesn’t exist to my knowledge check the spelling of $(eval) Also please note nightbot does not recognize next line and tabs as valid spaces so what it is probably reading it as is $(evalvar)
Leafy Ant
thanks so much for the feedback. will test it! Edit: It works now. thanks for the info <3