TotalTechGeek / json-logic-engine

Construct complex rules with JSON & process them.
MIT License
46 stars 9 forks source link

Alternative for "if" chaining #34

Open rockus123 opened 3 weeks ago

rockus123 commented 3 weeks ago

What is the alternative to

{ "if": [ conditional, then, conditional2, then2, ..., else ] }

Thanks,

TotalTechGeek commented 3 weeks ago

Hey @rockus123,

I still need to update the documentation on the website and set up CI for making that easy; See: https://github.com/TotalTechGeek/json-logic-engine/issues/30

This behavior is fully supported in JSON-Logic-Engine. However, if it wasn't, you'd nest the if statement logic.