Skip to main content
Question

Logic for same column

  • September 11, 2023
  • 5 replies
  • 13 views

Forum|alt.badge.img+5

If a column contains the string "Insert," I want to change all the values in that column to "Insert." If the column does not contain "Insert," we want to leave the values in that column unchanged.

 

Is there a method or approach available that would allow me to accomplish this objective?

5 replies

geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • September 11, 2023

Something like this?

imageIn (1), no features with value 'Insert' in ColumnToTest are present. No features enter the Supplier port of the FeatureMerger, so all features exit the FeatureMerger through the UnmergeredRequestor port, and no values are changed.

In (2), one or more features with value 'Insert' in ColumnToTest are present, so all features will exit the FeatureMerger through the Merged port. In this case the value of attribute ColumnToTest is changed to 'Insert' for all features in the AttributeManager.


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • September 11, 2023

cam you send me the workspace


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • September 11, 2023

Or course.


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • September 11, 2023

No this not that i want


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • September 11, 2023

I'm sorry, then I don't understand what you are trying to accomplish.