No Output from Custom Function

No Output from Custom Function

Hi Guys,

This is my first ever attempt to write in deluge so please go easy.

I needed to create a custom function in Zoho Flow - to turn a full name string like "Ian Robert Smith" in to a separate output of First Name and Last Name i.e. "Ian" and "Smith" - so that I can use those variables further on in the flow.

I seem to have written a functioning function as using info I can se the information is being split down correctly.

However nothing is being output to the flow.

I was trying to put it out using MAP and struggling...I've set out put to void so I can at least save it for now. But if anyone can point out to me what I need to add to the code to get a useable output of varaibles I can map to other parts of the flow I would be grateful.

  1. void ExtractFirstAndLastName(string Full_Name)
  2. {
  3. nameslist = Full_Name.toCollection(" ");
  4. //info nameslist;
  5. number_names = nameslist.size();
  6. //info number_names;
  7. Last_Name = nameslist.get(nameslist.size() - 1);
  8. First_Name = nameslist.get(0);
  9. info First_Name;
  10. info Last_Name;
  11. return;
  12. }

Thanks for anyone who takes the time to help it is appreciated