Support when ... then ...