I want to check whether Value1 below contains \"abc\" within the first X characters. How would you check this with an if statement?
Value1
if
This is what you need :
if (Value1.StartsWith("abc")) { found = true; }