title: Prevent deployment if previous stage deployment condition is set to false in yaml
body: <p>I created a build/release pipeline using yaml:</p>
  
  <p><a href="https://i.stack.imgur.com/2Fb6a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Fb6a.png" alt="enter image description here"></a></p>
  
  <p>Here, the first stage is 'Build'. Once Build is complete and succeeded, next stage is 'deploy to ua'. If deployment to ua is complete and succeeded, next stage is 'deploy to prod'.</p>
  
  <p>As shown here, the condition for 'deployment to ua' returned a 'false'. How would I skip deployment to prod if the condition for 'deployment to ua' is false.</p>
  
  <p><a href="https://i.stack.imgur.com/hhS76.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hhS76.png" alt="enter image description here"></a></p>