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

[bug] array.length is not supported #192

Open
Colindeng opened this issue Mar 12, 2020 · 1 comment
Open

[bug] array.length is not supported #192

Colindeng opened this issue Mar 12, 2020 · 1 comment
Labels

Comments

@Colindeng
Copy link

Colindeng commented Mar 12, 2020

- var lessons = ["jade","js"]
if lessons
    if lessons.length>2
        p more than 2: #{lessons.join(',')}
    else if lessons.length >1
        p more than 1: #{lessons.join(',')}
    else
        p no1 lessons:#{lessons.length}
else
    p no2 lessons

output
no1 lessons:

@chbloemer
Copy link
Contributor

currently only jexl syntax is supported. which is similar to javascript. in a future version you may have the possibility to switch to nashorn or graalvm. but thats currently very experimental and much slower than jexl.

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

No branches or pull requests

2 participants