Fix cons
[jscl.git] / test.html
index 322ccbf..ec43a81 100644 (file)
--- a/test.html
+++ b/test.html
           // Start the prompt with history enabled.
           jqconsole.Prompt(true, function (input) {
             // Output input with the class jqconsole-output.
-            if (input[0] == ',')
+            if (input[0] != ','){
                 jqconsole.Write(JSON.stringify(lisp.evalString(input)) + '\n', 'jqconsole-output');
-                jqconsole.Write(JSON.stringify(lisp.compileString(input)) + '\n', 'jqconsole-output');
+            } else {
+                jqconsole.Write(JSON.stringify(lisp.compileString(input.slice(1))) + '\n', 'jqconsole-output');
+            }
             // Restart the prompt.
             startPrompt();
           });