lib/cpee/processtransformation/cpee.rb in cpee-1.3.221 vs lib/cpee/processtransformation/cpee.rb in cpee-1.3.222
- old
+ new
@@ -45,10 +45,14 @@
s1.attributes[k] = v
end
generate_for_list(node.sub[0],s1)
else
s1 = res.add('loop', 'mode' => 'pre_test', 'condition' => 'true')
- print_Conditional(node,s1)
+ if node.sub.length == 1
+ generate_for_list(node.sub[0],s1)
+ else
+ print_Conditional(node,s1)
+ end
end
s1
end
def print_Node(node,res)