title: Concatenate String With Ternary Operator
body: <p>I'm trying to dynamically add some additional strings to a query if a file exists that a table is created from. The end ternary works if I remove the first one. I get a syntax error when trying to print out the string below. </p>
  
  <pre><code>testQuery = """
  select 
  fish,
  """+("""Room,""" if os.path.isfile(schoolFile)==True else """""")+
  """period_01,
  period_02
  
  from over_cs_doe d
  """+("""LEFT JOIN schools s ON s.fish=d.fish""" if os.path.isfile(schoolFile)==True else """""")
  </code></pre>