function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sdetweilsdetweil 

apex string eval class?

I need to simulate the soql where clause algorithms, in memory, during a trigger execution.

 

I will need to paramterize the coded where clause(s), on trigger fire,  replace the parms with the actual class variable data, and execute the algorithm coded to get a true/false boolean answer.  the algorithm can contain in(list of literals) as well as contatenation of strings. and I supposed lowercaseing..(trying to be generic).

 

I see a couple java classes like this, but nothing in apex..

 

anybody try anything like this?  don't want to dig out my old parsers..

Sam