Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I access item of an array? #301

Open
amadeu01 opened this issue Aug 25, 2020 · 2 comments
Open

How can I access item of an array? #301

amadeu01 opened this issue Aug 25, 2020 · 2 comments

Comments

@amadeu01
Copy link

amadeu01 commented Aug 25, 2020

Like:

{{ function.name | split:"("  }}

I would like to be able to access the first item of the split result. How can I do this?

@michzio
Copy link

michzio commented May 11, 2022

did you find solution? I am searching how to get last element it gives me string
{% set assetLanguage %}{{}}asset.name|split: "-"}}{% endset %}

@amadeu01
Copy link
Author

@michzio I haven't found a solution, and you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants