The first if statement works but the second one doesn't. Am I using it wrong?
I want to check if the first letter of the first word is any of the following: ABCDabcd
Code: Select all
put char 1 of word 1 of thisLine into xchar
if xchar = "A" then
beep
end if
if matchText(xchar,"ABCDabcd") then
beep
end if
Code: Select all
if matchText("ABCDabcd",xchar) then
I tried checking if xchar is not empty but that did not fix it.button "BCreate": execution error at line 47 (matchChunk: error in pattern expression) near "bad escape sequence", char 19
Am I going down a false path?
Should I be doing this another way?