code:... function parseText(text){ if(text=="!blah"){ CommandInfo.sResult = "Blah blah blah"; CommandInfo.complete = "true"; }else{ CommandInfo.complete = "false"; } }