I just tested it with the appended file and I got this message:
System.Exception: Starting transaction when previous transaction not finished
at AxeSoftware.Quest.UndoLogger.StartTransaction(String command)
at AxeSoftware.Quest.EditableScripts.AddNew(String keyword, String elementName)
at AxeSoftware.Quest.EditorControls.ScriptEditorControl.ctlScriptAdder_AddScript(String script)
at AxeSoftware.Quest.EditorControls.ScriptAdder.AddCurrent()
at AxeSoftware.Quest.EditorControls.ScriptAdder.ctlEditorTree_CommitSelection()
at AxeSoftware.Quest.EditorControls.WFEditorTree.ctlTreeView_DoubleClick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I cant add any 'else' or 'else if' any more