Can't get HUBL Split function working properly

@Jsum - replying separately to the comment about arrays:

In both cases I am creating a string called string_to_split and then creating an array using split(…). When I assign the string using “…” it works perfectly. When i assign the string using the contact property it does not. In both cases I have *definitely* assigned a string (checked using pprint) and in both cases the string *definitely* looks the same (again checked using pprint as well as displaying the variable). But in one case the split(…) produces an array and in the other it does not. If I could produce an array when using the contact property I completely agree that displaying the elements is trivial.

Thanks

Mike

@mikemaynard
Maybe before the |split filter, I have had success in the past with others to squeeze in the |string filter first. Could look like this

string_to_split|string|split(';', 9)

Maybe that will work?
@Jsum I can see he already showed the example output in the initial question.

Thanks for helping @EricSalvi. Unfortunately it didn’t work.

I tried:

{% set names = string_to_split|string|split(‘;’, 9) %}

and unfortunately the behaviour is still exactly the same. it splits string_to_split when it’s assigned with a constant value, but not with the contact.industry property.

In case anyone comes to this years later as I did, I was experiencing the same issue in 2025. The problem was that though I’d created a module for emails, I had not toggled Use programmable email module on:

Anya23_0-1765311583775.png

This probably wasn’t available at the time of the initial post, but this solved the issue of trying to split a contact property string into an array by a delimiter, but having the entire string end up as the single value in the array, instead of being split.