This project is read-only.

How can i Evaluate expression if then else if then else

Nov 7, 2016 at 10:39 AM
Edited Nov 8, 2016 at 7:35 AM
Hi,

I wanted to test the expression from string ,if fails i need to check other condition like "else if ladder" kind,Do we have any option to achive the below?.Any idea suggestions

Actual taken from test project

var result5 = evaluator.Evaluate(
           " (Age > 40) then (Married = false) then SetCanReceiveBenefits(true) else SetCancelBenefits(true) else SetStopBenefits(true) ", person3);
Looking for

var result5 = evaluator.Evaluate(
"(Age > 40) then (Married = false) then SetCanReceiveBenefits(true) else SetCancelBenefits(true) else (Age=25) then SetStopBenefits(true) else something('test') ", person3);

Thanks,
Velu