For comparing
value = expression
, the expression is to be evaluated, as it may contain operators.
I think this Code Project article may be helpful to evaluate the expression
An expression evaluator written in VB.NET[
^]
After evaluating the expression, let us say the result is expressionResult. Now the Value can be compared as below
If Value = expressionResult Then
'Do Some thing.
Again if the
statement
, is something to be instantiated or run then,
System.Reflection, Process etc
. are to be used.