My requirement is to remove the duplicate values from a rule input of type text. Here is a sample input and output.
Input: Hello hello Hello there there past pastures
Output: Hello there past pastures
Discussion posts and replies are publicly visible
You use split() to turn it into a list and union() to remove duplicates.
good approach. perhaps user lower() or proper() in combination with the split results to avoid "hello" and "Hello" treated as different values.
Union will return Hello hello there past pastures
But the result should be Hello there past pastures
© 2023 Appian. All rights reserved.