Salesforce Certified OmniStudio Developer — Question 35

A developer needs to configure a calculation procedure to calculate a subtotal using two different formulas depending on whether the input Boolean variable isCustomer is set to true or false.
How should a developer configure the calculation procedure to conditionally execute the correct formula?

Answer options

Correct answer: D

Explanation

The correct answer is D because it explicitly compares the isCustomer variable to the boolean values true and false, ensuring the correct formula is executed based on the variable's state. Option A is incorrect as it relies on an IF statement which is not necessary for this scenario. Option B fails because it does not provide a comparison, which is needed to determine which formula to use. Option C is also incorrect as using functions like ISTRUE is unnecessary when direct comparison is available.