Skip to content

Update rules in SVG to allow in array check

name: Rules in svg currently only allow operators from expr-eval lib but we want to allow allow in array check in the rule.
For eg. To show an svg element only if a value is present in an array.

condition = contains(22, [45,22,44,32]);  //This will return true
condition = contains(22, [45,122,44,32]);  //This will return false



about: Describe this issue  here.

Issue Name

Summary

Steps to Reproduce

Current Behaviour

Expected Behaviour

Extra Details

Here you should include details about the system (if it is unique) and possible information about a fix (feel free to link to code where relevant). Screenshots/GIFs are also fine here.

Edited by Ajaykumar Dubey