react-querybuilder/react-querybuilder

Does this library support result logic?

kellywang1234 opened this issue · 2 comments

Does this library support result logic if conditions are all met? For example

The rule which shows in demo page: FirstNameValue == "aaa" AND LastNameValue =="bbb"

if these conditions included, i need to return the result or another row: Then CityValue == "ccc"

Do you support this result logic function if conditions are met?

Thank you!

What would you be matching against, and how would you test that the conditions passed? For local (in-browser) data, JsonLogic is pretty handy. RQB comes with import and export methods for JsonLogic.

You could probably create a custom rule group component to do what you've described...but I don't think I'd recommend it.

Thank you! we may close this ticket now