title: Multiple when clause inside single stage in Jenkins file
body: <p>I want to put multiple when clause in a single stage. Here is the basic example</p>
  <pre><code>def foo = 0
  pipeline {
      agent any
  
      stages {
          stage('Hello') {
          when {
              expression {foo == 0}
          } 
              steps {
                  echo 'foo is 0'
              }
          when {
              expression {foo == 1}
          } 
              steps {
                  echo 'foo is 1'
              }
          }
      }
  }
  </code></pre>
  <p>When I try this I recieve an error</p>
  <pre><code> Multiple occurrences of the when section 
  </code></pre>
  <p>Actually my real problem is different but solving this will probably solve my real problem. Thanks in advance</p>