cancel
Showing results for 
Search instead for 
Did you mean: 

Passing the expression as parameter

Harsha3
New Contributor III

Hi Good day,

Would like to check how to specify an expression statement as a parameter in the mapper. I identified specifying the expression directly in the mapper which evaluates to the boolean value depending on the evaluation but the same can not be achieved if we pass the expression as a parameter. It gets read as a string, so could not achieve the exact result. Any idea how to achieve this case?

Sample Pipeline where expression is written directly in the mapper:

Head Snap Test_2023_05_22.slp (3.7 KB)

Sample Pipeline where expression is passed as a parameter:

Head Snap Test_2023_05_22 (1).slp (3.9 KB)

2 REPLIES 2

SpiroTaleski
Valued Contributor

@Harsha3

Try with eval() function, by which the expression from the parameter will be evaluated:

image

BR,
Spiro Taleski

Harsha3
New Contributor III

Thanks so much