I have string in the format (AND, true, false, (OR, true, false, false, (AND, false, true)))
for example, Is there a way in JavaScript by which we can evaluate this string to a boolean value?
expression 1: (AND, true, false) => false
expression 2: (AND, true, (OR, false, true)) will evaluate to => (AND, true, true) => true
like this we can have an expression with nested conditions.
Any solution for solving this one will be a huge help. Thanks in advance