I want to find the last character of a string and then put in an if stating that if the last character is equal to \"A\", \"B\" or \"C\" then to do a certain action
if
Use the endswith method of strings:
endswith
if (string.EndsWith("A") || string.EndsWith("B")) { //do stuff here }
Heres the MSDN article explaining this method:
http://msdn.microsoft.com/en-us/library/system.string.endswith(v=vs.71).aspx