title: Timing for Delay Interval using SMILE for Python
body: <p>Our lab is running a memory task where a patient is dosed with a drug or placebo partway through a task structure. We are using an existing task, and modifying it in several ways in order to fit the drug administering. One of these is altering a pause between encoding and retrieval specific to the block where the drug/placebo is administered, without altering the others.</p>
  <p>Below is the code where I have two different variables (defined in the configs.py file) using smile/kivvy which alter the delay in block two only to be fifteen minutes rather than five, to allow for drug administration via IV.</p>
  <p>I have tried this without '' around the number (does not stop between study and test), altering the elif statement to else (errors), as well as altering the order of the delays. As the script runs, it only accepts the first variable. If the fifteen minutes is place first, ALL blocks have a fifteen minute delay. If the five minutes is noted first, they all have a five minute.</p>
  <p>Any help on this would be appreciated.</p>
  <pre><code>    if (trial.current['section'] &lt; '2') | (trial.current['section'] &gt; '2'):
          with Parallel():
              Wait(duration=intraCycleDelay, blocking=False)
              Label(text='Five Minute Break', font_size=s(
              CONTFONTSIZE), blocking=False)
          Label(text=f&quot;Press {continueKey} to continue.&quot;,
            center_y=exp.screen.center_y-200, font_size=s(CONTFONTSIZE))
          with UntilDone():
              KeyPress(keys=continueKey)
      elif trial.current['section'] == '2':
          #for the break between study two and test 2
          with Parallel():
              Wait(duration=dose_delay, blocking=False)
              Label(text='Fifteen Minute Break', font_size=s(
              CONTFONTSIZE), blocking=False)
              Label(text=f&quot;Press {continueKey} to continue.&quot;,
            center_y=exp.screen.center_y-200, font_size=s(CONTFONTSIZE))
          with UntilDone():
              KeyPress(keys=continueKey)
  </code></pre>