Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Split not working on created variable

Anna Mjau September 24, 2025

Hello!

Im trying to split the string of a variable created in another step, but it is not working for me. I tried also the solution mentioned here , but it does not work for me.
I want to split out the minor version number from a current last one and increment it by one, but it fails to get the minor version number with .split().

See my steps:
lastfiltered.pnglastversion.pngminor.pngminorincremented.pngIm also logging the value after creating the variable. This is the log:

logincr.png

What could be done to accomplish my needs? 

1 answer

1 accepted

0 votes
Answer accepted
David Freitez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2025

Hi @Anna Mjau ,

Thank you for posting your inquiry,  I started to test it as soon as I saw it and hit the same problem, checked the documentation and followed  the examples but still your same problem. 

Later I thought to test with another character other than the Point (.)  and the Split worked, so I got from it that the problem is triggered by such character, so then I changed the split to use single quotes instead of doubles and it worked: split('.')

I used specifically: {{variable.split('.').last}}

SplitTesting.png

Please give it a try and let me know how it goes.

If my comment helps you solve your issue, kindly consider marking it as the answer to the community question.

Kind regards,
David

 

Anna Mjau September 24, 2025

Thank You, David!

Your suggestion with the single quotes worked! 

Suggest an answer

Log in or Sign up to answer