This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Splitting a String and Compare

I have a string as sample="food/drink/dessert"

1) I need to split this string at "/" into an array or list

2) I need to check if another string say mychoice (which has value as "drink") exists in sample array (mentioned above)

How can I achieve both the tasks (without using for loop) in One Identity Manager? Is there any list or contains method which can be used here?

Parents
  • Hi Paul, Thanks for your response. I can see that the example shown in the link uses "for loop" but I want to avoid that. I've certain code limitations where I can't use for loop. Is there any other work around?
Reply
  • Hi Paul, Thanks for your response. I can see that the example shown in the link uses "for loop" but I want to avoid that. I've certain code limitations where I can't use for loop. Is there any other work around?
Children
No Data