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

Why do you use dot to access array item instead of brackets #466

Open
gritsenkob opened this issue Apr 21, 2023 · 0 comments
Open

Why do you use dot to access array item instead of brackets #466

gritsenkob opened this issue Apr 21, 2023 · 0 comments

Comments

@gritsenkob
Copy link

In templates You use dot(.) to access array item(e.g. "firstSegments.MSH.10")
On the other hand liquid documetation says that you can use square brackets to access array item(e.g. "firstSegments.MSH[10]")
link to liquid documentation: https://shopify.github.io/liquid/basics/types/#array
I`m confused a little bit

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

1 participant