title: SSI Expression for simple if else
body: <p>I just discovered Apache SSI expressions and it seems similar to CGI-BIN/PERL in concept, if not as elegant, but I'm having trouble getting a simple variable assignment and evaluation to happen.</p>
  
  <p>All the resources I'm finding are using more complex examples or strip out all the code around the concept so I can't find syntax examples out there for my situation.</p>
  
  <p>I just want to be able to set a variable (preferably to an integer) and evaluate it.  The hope is that the scope of a variable set in a higher file will trickle to the lower files and I can pass variables this way, using web files as scripts.</p>
  
  <p>My current test SSI:</p>
  
  <pre><code>&lt;!--#set var="page" value="0"--&gt;
  &lt;!--#if expr="@page == '0'" --&gt;
      &lt;!--#include file="./layout.ssi"--&gt;
  &lt;!--#elif expr="@page == '1'" --&gt;
      Eat Me
  &lt;!--#else --&gt;
      NOPE!
  &lt;!--#endif --&gt;
  </code></pre>