Loading
Business Rules Engine
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Conditional Group and Condition

          Conditional Group and Condition

          A conditional group step element runs a group of steps if the expression in the condition element in the group evaluates to true. A conditional group can have these step elements: condition, calculation, lookup table, and subexpression. A condition step element is always the first element in the group. A condition step runs the step that follows if the condition expression evaluates to true. A condition step can only be used as part of a conditional group element, and not as a standalone step element.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Unlimited, and Developer Editions for clouds that have Business Rules Engine enabled
          Example
          Example A rule designer wants to create a conditional rule that calculates the discounted student fees for students aged 60 and above.

          The designer has created these expression set resources to be used in the Conditional Group element.

          resource nametypedata type
          Student_Age Variable Number
          Student_Fees Constant Currency
          Discounted_Student_Fees Variable Currency

          Here’s how the designer has configured the conditional group:

          Example of a Conditional Group.

          Here, in the condition element, the values in the Resource, Operator, and Value fields represent this condition: The student’s age is greater than or equal to 60.

          The calculation element defines the action that is taken if the condition evaluates to true. The calculation runs only if a student’s age is 60 or above. Student_Fees is the constant with a value of $2,000. The result of calculating 2,000 minus 30% of 2,000 is stored in the output variable Discounted_Student_Fees.

          • Default and Advanced Modes in the Condition Element
            The condition element in expression sets has two modes: default and advanced. When you add a condition element to an expression set, the condition opens in the default mode. The default mode has a no-code user interface to build your condition expression. You can also switch to the Advanced mode in the condition element to enter your expression manually.
           
          Loading
          Salesforce Help | Article