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

Value is null, retrieves the 0th element of the array #22

Open
ASLYBZ opened this issue Sep 6, 2021 · 0 comments
Open

Value is null, retrieves the 0th element of the array #22

ASLYBZ opened this issue Sep 6, 2021 · 0 comments
Assignees

Comments

@ASLYBZ
Copy link

ASLYBZ commented Sep 6, 2021

let value1 = Tuxedo().evaluate("{{ items.0 }}", variables: ["items": [1, 2, 3]])
print(value1) // null

let value2 = Tuxedo().evaluate("{{ items.1 }}", variables: ["items": [1, 2, 3]])
print(value2) // 2

@tevelee tevelee self-assigned this Sep 6, 2021
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