Skip to main content
I have two attribute A1 and A2 as columns and I would like to create a third attribute A3 (also a column) that will contain first value from A1 than second value of A2 and so on.

 

 

A3(1) = A1(1)

 

A3(2) = A2(2)

 

A3(3) = A1(3)

 

A3(4) = A2(4)

 

......

 

 

How to do just that?

 

Thank you.

 

Regards,

 

barani
Hi barani,

 

 

The ModuloCounter (Count Maximum: 2) add alternatively 0 and 1 to the features.

 

You can then use an AttributeCreator to create A3 with Conditional Value setting.

 

-----

 

A3 = If @Value(_modulo_count) = 0 Then @Value(A1) Else @Value(A2)

 

-----

 

 

Takashi

Reply