added AND and OR tCode generation