translate 'boolean' rule