AnsweredAssumed Answered

Python to concatenate alternating numeric digits from two separate number fields

Question asked by kbarclay on Jun 12, 2019
Latest reply on Jun 13, 2019 by Dan_Patterson

I have calc'd the X and Y coordinate value using calc geometry into two separate (numeric / double) fields and now need to combine them into a new string field by alternating the values based upon their individual digit position.

 

Eample: (note: not using any values after the decimal pt)

Field X_Coor                  Field Y_Coor            New Combined_Field

1831548.520524            490651.99297           8439105645

 

End result should have text value template of 'X2Y1X3Y2X4Y3X5Y4X6Y5' ... OR 8439105645 (using the example above)

 

Thanks

Outcomes