Is this example of expressions correct?
Corrected by user "HG1" in blenderartists.
In the BA thread you can see the answer and a .blend file shared. 
In short: 


  
  Your expression is wrong "if ((cor_exhibit_door == stol_exhibit_door), True, False)" or "cor_exhibit_door == stol_exhibit_door".
  If you only want to activate the expression if are bot sensors active then you can add the names of the sensors to the expression. "if (Near AND E AND (cor_exhibit_door == stol_exhibit_door), True, False)" or "Near AND E AND (cor_exhibit_door == stol_exhibit_door)