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:Im also logging the value after creating the variable. This is the log:
What could be done to accomplish my needs?
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}}
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.