mojomatt 0 Posted April 6, 2011 Hopefully an easy one... I know the below is comparing integers and strings but shouldn't they both evaluate to false? If 0 = "bogus" then MsgBox(0,"","Shouldn't this evaluate to false? Why does this evaluate to true?") If 1 = "bogus" then MsgBox(0,"","This does evaluate to false") Share this post Link to post Share on other sites
Jos 2,214 Posted April 6, 2011 A literal string has the value 0 hence your results. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites