Very new to this -> invalid variable response

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!

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)

thanks so much for the feedback. will test it!
Edit: It works now. thanks for the info <3

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.