Conditionalized datamodel compilation