Using localStorage to display message at initial and subsequent visits
<p>I'm running the following script after a login page. The below message appears if it is the first time the user has visited the site. </p>

<pre><code>&lt;script src="dist/sweetalert.min.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="dist/sweetalert.css"&gt;
&lt;script&gt;
   if (!localStorage['done']) {
       localStorage['done'] = 'yes';
       swal({   title: "Getting Started",   text: "Tap 'Select a Task' from the top menu to get started or watch the training video.",   type: "info",   confirmButtonText: "Got It!", animation: "slide-from-top" });
   }
&lt;/script&gt;
</code></pre>

<p>Now, I'd like if it ISN'T their first visit, to display a different message in the popup. Is <code>else</code> the way to go, and if so, what is the proper syntax?</p>