title: if statement on gitlab.ci yaml
body: <p>On my <code>gitlab.ci.yaml</code> response status must be <code>200</code> otherwise job should be fail and must write <code>transfer already started</code>.</p>
  
  <p>But I don't know how to write if statement for that.</p>
  
  <pre><code>variables:
    NUGET_PATH: 'C:\Tools\Nuget\nuget.exe'
    MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\amd64\msbuild.exe'
    SOLUTION_PATH: 'Textbox_ComboBox.sln'
  
  stages:
    - build
    - job1
    - job2
  
  before_script:
    - "cd Source"
  
  build_job:
    stage: build
    except:
      - schedules
    script:
      - '&amp; "$env:NUGET_PATH" restore'
      - '&amp; "$env:MSBUILD_PATH" "$env:SOLUTION_PATH" /nologo /t:Rebuild /p:Configuration=Debug'
  
  job1:
    stage: job1
    script:
      - 'curl adress1'
  
  
  job2:
    stage: trigger_SAP_service
    when: delayed
    start_in: 5 minutes
    only:
      - schedules
    script:
      - 'curl adress2'
  </code></pre>
  
  <p>How to add if condition for status=200 and transfer started in response ?</p>