Create GoodCommission template
- Click the Add If Then Template button
.
- In the Template 1 field, type GoodCommissionTemplate.
- Create three template parameters, by clicking the Add Template
Parameter button three times
.
- In the param1 field, type yearsLoyal.
- Click the Type field, and select int.
- In the param2 field, type totalWorthStock.
- Click the Type field, and select double.
- In the param3 field, type commissionToCharge.
- Click the Type field, and select double.
- In the Properties field, type A
customer who has been loyal for at least .
- From the drop-down combo (CTRL-SPACE), select yearsLoyal.
- In the Presentation field after yearsLoyal,
type years AND who has a stock portfolio worth at least $.
- From the drop-down combo (CTRL-SPACE), select totalWorthStock.
- In the Presentation field after totalWorthStock,
type is charged a commission of $.
- From the drop-down combo (CTRL-SPACE), select commissionToCharge.
- In the Presentation field after commissionToCharge,
type per stock transaction..
- Click Condition in the If field.
- From the drop-down combo (CTRL-SPACE), select All of
the following are true.
- Click the first Condition in the If field.
- In the field, type commissionInfo.yearsLoyalCustomer
>= yearsLoyal.
- Click the second Condition in the If field.
- In the field, type commissionInfo.totalPortfolioValue
>= totalWorthStock.
- Click Action in the Then field.
- In the field, type cashAmount.value
= commissionToCharge.
- From the menu, select File > Save (or press Ctrl+S).
