-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
List indexing with variables #59
Comments
@nikku I'm wondering if there's an ETA on this, we'd like to use FEELIN for our project because it keeps things in javascript land. Would you endorse its use in production? |
@sebastian9 I cannot confirm or deny that feelin is ready for production. Like any software it will have bugs. Also, I don't offer "enterprise support" so you'll need to wait a week or two before I pick up pull requests. Alternatives exists, such as dsntk/feel-evaluator that could be transpiled to |
Describe the Bug
When attempting to index a list using a variable, the expression
A[R]
does not produce the expected output. DespiteR
being set to3
andA
being a list with the values["Yes", "No", "Yes"]
, the expected output should be the third element of listA
twice, as in"Yes"
. However, the output is[ 3, 3, 3 ]
.FEEL Playground Issue
Steps to Reproduce
evaluate('A[R]',{
"R": 3,
"A": ["Yes","No","Yes"]
})
Expected Behavior
The expression returns the value of the list on the index which matches the variable value; ie, "Yes"
Environment
Additionally, this can be replicated in the playground -> FEEL Playground Issue
The text was updated successfully, but these errors were encountered: