---
schema_version: "1"
id: 11b9d60c3385ddc66c87e4a072707084fd943ee394e76959671352656f200338
title: Omniscript Function Elements
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_omniscript_function_elements_13882.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omniscript_function_elements_13882.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 68c03c313b1931e1d59904f384674deaf2b2f7a25290e4326f5cb50c85336378
description: From the Omniscript function elements, use the formula element to preform calculations that require complex calculations. For array input, use the aggregate element for complex calculations. The Messaging element displays comments, requirements, success, and warning messaging depending on whether the validate expression is true or false.
products:
  - Omnistudio
release: "264"
---
# Omniscript Function Elements

From the Omniscript function elements, use the formula element to preform calculations that require complex calculations. For array input, use the aggregate element for complex calculations. The Messaging element displays comments, requirements, success, and warning messaging depending on whether the validate expression is true or false.

- **[Create a Formula or Aggregate in an Omniscript](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_formula_or_aggregate_in_an_omniscript_23115.htm&release=264.0.0&type=5)**  
    Create expressions to set calculated values and evaluate data across multiple fields using a Formula or Aggregate element. For example, if you are accepting information for a qualifying life event you may want to create a formula that determines if the date entered for the qualifying life event is within thirty days of today's date.
- **[Display Messages in Omniscripts](https://help.salesforce.com/s/articleView?id=xcloud.os_display_messages_in_omniscripts_19551.htm&release=264.0.0&type=5)**  
    Display comments, requirements, and success and warning messaging depending on whether the validate expression returns True or False. Configure the Messaging element after creating an element, such as a formula or aggregate, to display validation messages in the OmniScript. Merge fields are supported in messages.