C code generation for the foreachelse loops works now