SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
if(myString != "-1")
The opperand is != and not =!
!=
=!
You can also use Equals
Equals
if(!myString.Equals("-1"))
Note the ! before myString
!