← Back to team overview

sikuli-driver team mailing list archive

[Question #175304]: Check a variable in an if statement

 

New question #175304 on Sikuli:
https://answers.launchpad.net/sikuli/+question/175304

variable=input("yay type something")
if variable="string":
	popup ("it worked")
else:
	popup ("it didn't work")

im just wondering what im doing wrong here, it spits out an error whenever i try to have it check for variable=string am I doing something wrong here?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.