Hey i´ve got a problem with my workflow logic.
I have multiple Strings with different lengths and need to split it up with a maximum of 40 characters and no cuts inside a word.
Example:
TestString = “Ingredients: Salad mayonnaise (rapeseed oil, water, EGG YOLK, sugar, corn starch,
Brandy vinegar, spices, table salt, WHEAT STARCH, grape sugar,
Maltodextrins, thickeners: guar gum, locust bean gum,
Xanthan gum; Color: carotene; Flavor)”
Target:
FirstString =“Ingredients: Salad mayonnaise (rapeseed oil,”
SecString =“water, EGG YOLK, sugar, corn starch, Brandy”
3rdString ="vinegar, spices, table salt, WHEAT STARCH, "
and so on…
My actual workflow works with a SplitIndex Assign like this:
splitIndex = (TestString.ToString.Substring(0,40).LastIndexOf(" ")+1)
then a write line:
TestString.ToString.Substring(0,splitIndex)
this works but just for the first Target String
how can i continue this workflow till the end of the full String
Thank u!
Added an example workflow (Test String is in german so dont be suprised )
Main.xaml (6.1 KB)