# Expression tag with split function getting value from the source string

**URL:** <https://forum.inductiveautomation.com/t/expression-tag-with-split-function-getting-value-from-the-source-string/84894>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [January 29, 2024, 2:58pm UTC](https://forum.inductiveautomation.com/t/expression-tag-with-split-function-getting-value-from-the-source-string/84894 "2024-01-29T14:58:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aron\_Grzywaczewski](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@Aron\_Grzywaczewski](https://forum.inductiveautomation.com/u/Aron_Grzywaczewski)\
**Post date:** [January 29, 2024, 2:58pm UTC](https://forum.inductiveautomation.com/t/expression-tag-with-split-function-getting-value-from-the-source-string/84894/1 "2024-01-29T14:58:17Z")

</div>

Hi Everyone,

I am trying to get the array items of the source string that is ";" delimited and write them to the expression tag.  
I have the following setup:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/9/e99be066639c3ab35693d5ab57b04bd461db1c9f.png)

I currently have an expression configured in all the expression tags as follows:  
split([[~]SourceString}, ";") [0]

So, I am getting the value of the first string before the first ";", but I am not able to get the rest of the items as the expression for the next item i.e. split([[~]SourceString}, ";") [1]  
returns error.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/03221437e65af79739722fa66cf9956af4d79002.png)

Does anyone have idea why?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 29, 2024, 3:10pm UTC](https://forum.inductiveautomation.com/t/expression-tag-with-split-function-getting-value-from-the-source-string/84894/2 "2024-01-29T15:10:51Z")

</div>

Change the indexing to `[0,0]`, `[1,0]`, and `[2,0]`. The `split` expression returns a dataset, not an array, so there are two dimensions.
