Expression Language
Create calculated attributes, define conditions, and transform data using ProcessMind's expression language.
Functions for conditional evaluation, comparisons, and logical operations.
Simple Categorization:
if(Amount > 1000, "High", "Low") Multi-Level Categorization: Nest if functions for multiple categories:
if(Amount >= 10000, "Enterprise",
if(Amount >= 1000, "Business",
if(Amount >= 100, "SMB", "Consumer")
)
) Using the Bucket Function: For numeric thresholds, bucket is often cleaner:
// Auto-generated labels
bucket(Amount, 100, 1000, 10000)
// Result: "<100", "100–1K", "1K–10K", or "≥10K"
// Custom labels
bucket(Amount, 100, "Small", 1000, "Medium", 10000, "Large", "Enterprise") Time-Based Conditions:
if(dayOfWeek(StartTime) in [6, 7], "Weekend", "Weekday") Returns one value if a condition is true and another if it is false.
| Parameters |
| |||||||||
| Returns | any | |||||||||
| Examples | if(Amount > 1000, "High", "Low") → High or Low if(Status == "Approved", 1, 0) → 1 or 0 if(5 > 3, "yes", "no") → yes if(2 > 7, "a", "b") → b | |||||||||
| Notes | Can be nested for multiple conditions. |
Returns the smallest value in a list of numbers.
| Parameters |
| |||||||||
| Returns | number | |||||||||
| Examples | min(5, 3, 8, 1) → 1 min(Amount, Budget) → smaller of the two | |||||||||
| See Also |
Returns the largest value in a list of numbers.
| Parameters |
| |||||||||
| Returns | number | |||||||||
| Examples | max(5, 3, 8, 1) → 8 max(Amount, MinimumAmount) → larger of the two | |||||||||
| See Also |
Groups a value into buckets based on thresholds. Labels can be generated automatically or set manually.
| Parameters |
| ||||||
| Returns | string | ||||||
| Examples | bucket(Amount, 100, 1000, 10000) → <100, 100–1K, 1K–10K, or ≥10K Automatically generated labels bucket(hour(StartTime), 6, "Night", 12, "Morning", 18, "Afternoon", "Evening") → Night, Morning, Afternoon, or Evening Custom labels bucket(500, 100, 1000, 10000) → 100–1K bucket(14, 6, "Night", 12, "Morning", 18, "Afternoon", "Evening") → Afternoon | ||||||
| Notes | In auto mode, all arguments after the value must be numbers. In manual mode, provide threshold/label pairs followed by a default label. |
Get instant access with no credit card and no waiting. Turn the way your organization works into clear, connected process designs.
Build your process architecture, define ownership and controls, and align roles and responsibilities across every level.
Start your free trial and create one reliable foundation for governing, managing, and continuously improving your processes.
We use cookies to improve your experience, personalize content, and analyze traffic. Anonymous page measurement happens without them; analytics consent adds an identifier that links your visits. By clicking "Accept All," you consent to our use of cookies.