codegen: add preliminary untested code for conditional