Skip to main content
Question

i need to display letters if string contains more than one occurrence . Ex String is 464662352

  • February 8, 2022
  • 6 replies
  • 650 views

i need to display letters if string contains more than one occurrence . Ex String is 464662352

6 replies

  • Author
  • Cadet | Tier 2
  • February 8, 2022

o/p =4,6,2 because this are more than one occurrence


Forum|alt.badge.img+11

Hi @madhavarao cherukuri​ ,

 

What should be the output?


Hey @madhavarao cherukuri​,

The approach I would take for this is to loop through each character of the string and use the 'Find' action within the String package. If the 'Find' action finds more than one instance of the character then add it to an output list. Also add a check for duplicates in the output before adding to the output.

 

There are definitely improves that can be made but this was my first thought.


Ashwin A.K
Forum|alt.badge.img
  • Navigator | Tier 3
  • February 9, 2022

Hi @madhavarao cherukuri​ ,

 

Here is a short workflow I have developed that works:

 

image 

 

image 

Kind Regards,

Ashwin A.K

 


  • Author
  • Cadet | Tier 2
  • February 9, 2022

Thanks @Ashwin A.K​ 


Ashwin A.K
Forum|alt.badge.img
  • Navigator | Tier 3
  • February 9, 2022

Glad I could help!

 

I'd appreciate it if you marked my solution as "Best" so that others facing similar issues may benefit from it as well.

 

Kind Regards,

Ashwin A.K