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

how to establish a rule in which 1 out of 2 array index must be present? #303

Open
musaev-haybulla opened this issue Dec 24, 2019 · 0 comments

Comments

@musaev-haybulla
Copy link

musaev-haybulla commented Dec 24, 2019

How is it possible to implement such a check:
If there are products, then there must be 1 out of 2 indices - positive or negative, for example

products is absent - true
products[negative] = [1,2,3] -? true
products[positive] = [4,5,6] -> true
products[negative] = [1,2,3] AND products[positive] = [4,5,6] -> true
products[blablabla] = [4,5,6] -> false (fail index)
products - false (nothing index)

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