title: Java velocity vm file #set use boolean variable
body: <p>We can not use Boolean variable by <code>#set</code> when I find velocity project guidelines in Apache official site, but it is also worked when I use in my project.</p>
  
  <pre><code>#set($isRight=true)
  #if($isRight)
    ##execute
  #end
  
  #set($isRight=false)
  #if($isRight)
    ##not execute
  #end
  </code></pre>
  
  <p>I want to know whether <code>#set</code> Boolean variable is supported by velocity and the way I use whether is legal.</p>