Add if-with-label generator method