SyntaxFix
Write A Post
Hire A Developer
Questions
has_key is fast and efficient.
has_key
Instead of array use an hash:
valueTo1={"a","b","c"} if valueTo1.has_key("a"): print "Found key in dictionary"