title: If condition possible in yaml file?
body: <p>I need to add one more name based on if condition. If If variable value from another .yml file is "yes" then add a new name in the list</p>
  
  <p>I've the following code in my yaml file:</p>
  
  <pre><code>JsNames:
   - name: 'jquery.min.js'
   - name: 'script.js'
  </code></pre>
  
  <p>I need to add more name based on if condition. If variable value from another .yml file is "yes" then add a new name like this:</p>
  
  <pre><code>JsNames:
   - name: 'jquery.min.js'
   - name: 'script.js'
   - name: 'new.js'
  </code></pre>
  
  <p>is this possible?</p>
  
  <p>Tried the following:</p>
  
  <pre><code>JsNames:
   - name: 'jquery.min.js'
   - name: 'script.js'
   - | # Test multiline yaml support
     if [[ "site.data.settings.requiredjs" == "yes" ]]; then
       name: 'new.js'
     fi
  </code></pre>
  
  <p>I need to add more name based on if condition. If variable value from another .yml file is "yes" then add a new name like this:</p>
  
  <pre><code>JsNames:
   - name: 'jquery.min.js'
   - name: 'script.js'
   - name: 'new.js'
  </code></pre>