I have a string conditions logic that retrieves values for a Map<String,Boolean>
and checks if logic is true or false.
For example my logic looks like:
((1A2)O3)
Being A => AND and O => OR.
And my map has this kind of structure:
new Map<String,Boolean>{'1'=>true,'2'=>false,'3'=>true};
Is it possible to replace characters in logic conditions with boolean values and get a proper result in Apex? Or even in Javascript?