Evaluate Dynamic Expression As Rule
  • 11 Nov 2022
  • 1 Minute to read
  • Dark
    Light

Evaluate Dynamic Expression As Rule

  • Dark
    Light

Article summary

Step Details

Introduced in Version7.12.0
Last Modified in Version7.12.0
LocationData > Numbers

The Evaluate Dynamic Expression as Rule will allow the user to enter a dynamic mathematical expression with a solvable outcome that will return a true or false result based on whether or not the expression is equal. The variable(s) used in the expression can be dynamically mapped to input data to evaluate against.


These steps use NCalc expressions; for more information, see NCalc.

Properties

Inputs

PropertyDescriptionData Type
ExpressionWrite expressions in the Expression input; any variable will be available as input. String

Outputs

PropertyDescriptionData Type
Nonr------

Related Information

Articles:
Evaluate Dynamic Expression as Rule

Example Labs:
Rounding Decimals Using Dynamic Expression Step

Forum Posts:
Evaluate Expressions with Max Int Values


Expression List

NAMEDESCRIPTIONUSAGERESULT
AbsReturns the absolute value of a specified number.Abs(-1)1M
AcosReturns the angle whose cosine is the specified number.Acos(1)0d
AsinReturns the angle whose sine is the specified number.Asin(000d
AtanReturns the angle whose tangent is the specified number.Atan(0)0d
CeilingReturns the smallest integer greater than or equal to the specified number.Ceiling(1.5)2d
CosReturns the cosine of the specified angle.Cos(0)1d
ExpReturns e raised to the specified power.Exp(0)1d
FloorReturns the largest integer less than or equal to the specified number.Floor(1.5)1d
IEEERemainderReturns the remainder resulting from dividing a specified number by another specified number.IEEERemainder(3, 2)-1d
LogReturns the logarithm of a specified number.Log(1, 10)0d
Log10Returns the base 10 logarithms of a specified number.Log10(1)0d
MaxReturns the larger of two specified numbers.Max(1, 2)2
MinReturns the smaller of two numbers.Min(1, 2)1
PowReturns a specified number raised to the specified power.Pow(3, 2)9d
SignReturns a value indicating the sign of a number.Sign(-10)-1
SinReturns the sine of the specified angle.Sin(0)0d
SqrtReturns the square root of a specified number.Sqrt(4)2d
TanReturns the tangent of the specified angle.Tan(0)0d
TruncateCalculates an integral part of a number.Truncate(1.7)1
InReturns whether an element is in a set of values.in(1 + 1, 1, 2, 3)true
IfReturns a value based on a condition.if(3 % 2 = 1, 'value is true', 'value is false')'value is true'

Was this article helpful?