New answers tagged


Scriban has a split function on strings: string.split <text> <match> The split function takes on a substring as a parameter. The substring is used as a delimiter to divide a string into an array. You can output different parts of an array using array functions. Also ...


Maybe you can use the string split (by '|') function that will get you the array: [,]. Then you can read first element of the array using array first function. Example: {{ for word in "Hi, how are you today?" | string.split ' ' ~}} {{ word }} {{ end ~}} output Hi, how are you today?

Top 50 recent answers are included