ENH:implement GetValue() for AND and OR