http://stackoverflow.com/questions/1312986/how-to-make-a-logical-boolean-parser-for-text-input
--- In flexcoders@yahoogroups.com, "BillF" <bill.franklin@...> wrote: > > So, I have a string expression that I need to evaluate as a boolean result. > Any ideas on how to do that? The expression can be in any valid boolean > format.. > > example1: "(true && false) || true", evaluate to true > example2: "false || (true && not true)", evaluate to false > example3: "false || true", evaluate to true > example4: "true && false", evaluate to false > example5: "true" > > TIA > > Bill >