title: Using dag_run variables in airflow Dag
body: <p>I am trying to use airflow variables to determine whether to execute a task or not. I have tried this and it's not working:</p>
  <pre><code>if '{{ params.year }}' == '{{ params.message }}':
       run_this = DummyOperator (
                  task_id = 'dummy_dag'
                 )
  </code></pre>
  <p>I was hoping to get some help making it work. Also is there a better way of doing something like this in airflow?</p>