title: Azure DevOps - Run Build job Conditional statement and expression
body: <p>I am trying to run a CI stage in Azure DevOps in a self-hosted Linux Agent. The stages look like below:</p>
  <p>CI - Build Job:</p>
  <ul>
  <li><p>Task 1: Python script to check a TRUE OR FALSE condition</p>
  </li>
  <li><p>Task 2: Bash script to execute certain commands</p>
  </li>
  </ul>
  <p>Now, Task 2 Should run only when the Task 1 py script execution contains only &quot;TRUE&quot;.</p>
  <p>I have referred a few docs which suggested to go with custom conditions from the following link:</p>
  <p><a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&amp;tabs=classic" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&amp;tabs=classic</a></p>
  <p>But not sure how to write custom condition as I am new to this.</p>
  <p><strong>NOTE: I want to try only in a custom mode, not in YAML</strong></p>