Expression Evaluator

Stable Version 1.0.0 (OutSystems 11)
Published on 10 Jul (8 days ago) by 
Created on 10 Jul (8 days ago)
Details
Expression evaluator can parse any expression and evaluate the result, including static or dynamic parameters.
Read More

Expression evaluator can parse any expression and evaluate the result, including static or dynamic parameters.

Exp1.  - (2+3)*2 = 10

Exp2.  - (A*B*C)/D where you can set the value of variables like A,B,C,D and send it as parameter to the function to get the result.

Complex expression can be evaluated easily. Like - Round(Pow([X], 2) + Pow([Y], 2) + [Z], 2)

How to use:

Function 1: GetResultForExpression

           A] Set the Expression parameter with the expression you want to evaluate, like (3+2)/4

           B] Get the result from "Result" output parameter


Function 2: GetResultForExpressionWithParameter

          A] You can set a dynamic expression like, (A+B+C)*D where you need to set the value of the        

                parametes for A,B,C,D as name value pair and add in the "NameValue" structure list. Now set 

                the input parameter "ParameterList" with this list.

         B} Get the result from "Result" output parameter

Reviews (0)
Category
Components, Libraries
Tags
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Sourav Pasari who created this component.
Dependencies
Expression Evaluator has no dependencies.
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads