title: Python dash dataTable style_cell_conditional - multiple conditions
body: <p>I want to set 2 conditions in <code>style_cell_conditional</code>. The code below doesn't work.</p>
  <p>Error:SyntaxError: expression cannot contain assignment, perhaps you meant &quot;==&quot;?</p>
  <pre><code>dash_table.DataTable(
                       id='table1',
                       columns=[{&quot;name&quot;: i, &quot;id&quot;: i} for i in df_table13.columns],
                       style_cell_conditional=[
                                              {
                                              'if': {'column_id': i},
                                              'backgroundColor': '#B10DC9',
                                              'color': 'white'
                                              }for i in df_table13.columns if i!='index',
  
                                              {'if': {'column_id': 'index'},
                                               'width': '200px'
                                              }
                                              ]
                       data=df_table13.to_dict('records')
  
  )
  </code></pre>
  <p>If I put only one condition with for loop then it works:</p>
  <pre><code>dash_table.DataTable(
                       id='table1',
                       columns=[{&quot;name&quot;: i, &quot;id&quot;: i} for i in df_table13.columns],
                       style_cell_conditional=[
                                              {
                                              'if': {'column_id': i},
                                              'backgroundColor': '#B10DC9',
                                              'color': 'white'
                                              }for i in df_table13.columns if i!='index'
                                              ]
                       data=df_table13.to_dict('records')
  
  )
  </code></pre>
  <p>also works when I put two conditions, but without for loop:</p>
  <pre><code>dash_table.DataTable(
                       id='table1',
                       columns=[{&quot;name&quot;: i, &quot;id&quot;: i} for i in df_table13.columns],
                       style_cell_conditional=[
                                                                                             
                                              {'if': {'column_id': 'index'},
                                               'width': '200px'
                                              },
  
                                              {'if': {'column_id': 'column2'},
                                               'color': 'white'
                                              }
                                              ]
                       data=df_table13.to_dict('records')
  
  )
  </code></pre>
  <p>How can I combine condition like:</p>
  <pre><code>                                        {'if': {'column_id': 'column2'},
                                           'color': 'white'
                                          }
  </code></pre>
  <p>with condition like:</p>
  <pre><code>                                   {
                                      'if': {'column_id': i},
                                      'backgroundColor': '#B10DC9',
                                      'color': 'white'
                                      }for i in df_table13.columns if i!='index'
  </code></pre>
  <p>Or how to use the <strong>inequality</strong> expression below? It would solve my problem.</p>
  <pre><code>   {'if': {'column_id': 'index'},
  </code></pre>