diff --git a/interface/src/scripting/WindowScriptingInterface.h b/interface/src/scripting/WindowScriptingInterface.h
index 9e8c2d5835..0583ca1849 100644
--- a/interface/src/scripting/WindowScriptingInterface.h
+++ b/interface/src/scripting/WindowScriptingInterface.h
@@ -112,10 +112,10 @@ public slots:
      * @function Window.prompt
      * @param {string} message - The question to display.
      * @param {string} defaultText - The default answer text.
-     * @returns {string} The text that the user entered if they select "OK", otherwise "".
+     * @returns {string} The text that the user entered if they select "OK", otherwise null.
      * @example <caption>Ask the user a question requiring a text answer.</caption>
      * var answer = Window.prompt("Question", "answer");
-     * if (answer === "") {
+     * if (answer === null) {
      *     print("User canceled");
      * } else {
      *     print("User answer: " + answer);