Hide an empty line through Python IF statement in FME Workbench

المشرف العام

Administrator
طاقم الإدارة
I am trying to set a rule that would move up filled lines and hide an empty line (it can be on any line) in a postal address through PythonCaller transformer. I have a database table consisted of address elements (organisation_name, department_name, house_name, house_number, street_name, specific_locality, town, post_code…) and these elements are somehow ordered on address lines.

Here is an example:

house_namehouse_number, street_nametownpost_codeWhat I need to do now is to hide the empty line in the middle (address_line_3) by moving the last two address lines up (town_line and post_code_line).

So it's going to look like this:

house_namehouse_number, street_nametownpost_code(empty line)The order of the address elements varies as well as occurrence of the empty lines. Because I am a beginner in Python I can only guess how to do it. Thanks.



أكثر...
 
أعلى