Get boolean expression for each variable from a logic table