Hi to all on list, Today I tried installing the toggle keyboard layout script one of our listers wrote, but when I compiled, I got an error saying that an if condition must be followed by the word then. I can't find any errors in this script; I am at a loss. This occurs with both jfw 5.1 and 6.0. Hal Script ToggleKeyboardLayout () If SpeechInUse () then SpeechOff () EndIf JAWSWindow () {alt+o}Pause() {b}Pause() {Shift+Tab}Pause() {Shift+Tab}Pause() {Shift+Tab}Pause() {Shift+Tab}Pause() {Shift+Tab}Pause() If GetWord ()=3D=3D"Desktop" then {l}Pause() {enter}Pause() ElIf GetWord ()=3D=3D"Laptop" then {d}Pause() {enter}Pause() EndIf {alt+space}Pause() {n} If not SpeechInUse () then SpeechOn() EndIf EndScript -- To post a message to the list, send it to jfw@xxxxxxxxxxxxx To unsubscribe from this mailing list, send a message to jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line. Archives located at: //www.freelists.org/archives/jfw If you have any concerns about the list, post received from the list, or the way the list is being run, do not post them to the list. Rather contact the list owner at jfw-admins@xxxxxxxxxxxxxx