The following code will detect a comma within a string.
set thestring to "this is a string, with a comma."
if thestring contains "," then
display dialog "this string contains a comma."
display dialog "this string does not contain a comma"
How did you know I likes chesse…