title: wsr macros else if statement in XML
body: <p>i am trying to create a macro for WSR where it takes the input of restarting system and confirms it by asking yes or no? Then if yes the macro restarts the system if no it just replies back canceling operation. So far this is what i have...</p>
  
  <pre><code>&lt;speechMacros&gt;
  &lt;command&gt;
  &lt;listenFor&gt;Restart the System&lt;/listenFor&gt;
  &lt;speak&gt;Confirm system restart. yes or no?&lt;/speak&gt;
  &lt;/command&gt;
  &lt;command&gt;
  &lt;listenFor&gt;[...]chester&lt;/listenFor&gt;
  &lt;if [...]="yes"&gt;
  &lt;run command="C:\Windows\System32\shutdown.exe" params="-r -t 00"/&gt;
  &lt;else[...]="no"&gt;
  &lt;speak&gt;canceling operation&lt;/speak&gt;
  &lt;/else&gt;
  &lt;/if&gt;
  &lt;/command&gt;
  &lt;/speechMacros&gt;
  </code></pre>
  
  <p>i tried but it gives me the error saying... </p>
  
  <p>A name was started with an invalid character.</p>
  
  <p>Line:9 Col:5</p>
  
  <pre><code>&lt;if[...]="yes"&gt;
  </code></pre>
  
  <p>How do i fix this?</p>