Attempt to fix a syntax error in a multi-line boolean expression