box4_41 = '%0.0f' % (box6_59.to_f * 100.0) print 'box4_41', box4_41 if (!box3_23.strip.empty?) box4_42 = '1' elsif (!box3_24.strip.empty?) box4_42 = '2' else box4_42 = '0' end print 'box4_42', box4_42 # Single Blanked: if ((box3_23 + box3_24 + box6_59).strip.length > 0) box4_41 = '%0.0f' % (box6_59.to_f * 100.0) if (!box3_23.strip.empty?) box4_42 = '1' elsif (!box3_24.strip.empty?) box4_42 = '2' else box4_42 = '0' end else box4_41 = '' box4_42 = '' end print 'box4_41', box4_41 print 'box4_42', box4_42