Skip to main content
Question

Logic for same column

  • Sep 11, 2023 4:13 AM UTC
  • 5 replies
  • 54 views

asadamjad
Participant
Forum|alt.badge.img+12

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+71
  • Evangelist
  • Sep 11, 2023 6:12 AM UTC

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.


asadamjad
Participant
Forum|alt.badge.img+12
  • Author
  • Participant
  • Sep 11, 2023 6:15 AM UTC

cam you send me the workspace


geomancer
Evangelist
Forum|alt.badge.img+71
  • Evangelist
  • Sep 11, 2023 6:36 AM UTC

Or course.


asadamjad
Participant
Forum|alt.badge.img+12
  • Author
  • Participant
  • Sep 11, 2023 7:46 AM UTC

No this not that i want


geomancer
Evangelist
Forum|alt.badge.img+71
  • Evangelist
  • Sep 11, 2023 8:03 AM UTC

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