You can use a regex expression.
Using the "test regex" system condition with
"77,1,6,7,3,17" as String
"\b7\b" as Regex and
"" as Flags
It will only be true if a 7 by itself is in the string, no false positives.
Here is a reference for regex expressions:
http://www.w3schools.com/jsref/jsref_obj_regexp.asp