使用和声明

时间:2018-04-06 10:19:42

标签: salesforce

请帮我回答这个问题:

我创建了一个名为" Car Rating"计算方法如下:

1)如果"颜色" field等于" Red"和"类别" field等于" mini",Car Rating值应为1.

2)。如果"颜色" field等于“Blue"和"类别" field equals" manager",Car Rating值应为2.

3)。如果"颜色"字段等于"黄色"和"类别" field等于" premium",Car Rating值应为3。

这就是我试图回答这个问题的答案,如果我的答案是正确的,那我就不能解决这个问题我需要你的帮助,请问我该怎么办

案例(和(ISPICKVAL(Color _c," Red"),(ISPICKVAL(Car_Category__c," mini")),1)案例(和(ISPICKVAL(Color__c,&#34) ;蓝色"),(ISPICKVAL(Car_Category__c,"经理")),2)案例(和(ISPICKVAL(Color _c,"黄"),(ISPICKVAL(Car_Category__c,&#) 34; premium")),3,0)

谢谢,Liraz

1 个答案:

答案 0 :(得分:0)

您可以使用嵌套的IF语句执行此操作:

@import '~ngx-chips/core/styles/core/_core.scss';

$foundation-primary: #1779ba;
$foundation-primary-dark: darken($foundation-primary, 10%);

// this is the container's theme
$foundation-theme: (
container-border-bottom: 1px solid $foundation-primary
);

// this is the tag's theme
$foundation-tag-theme: (
background: $foundation-primary,
background-focused: $foundation-primary-dark,
background-active: $foundation-primary-dark,
background-hover: $foundation-primary-dark,
color: #fff,
color-hover: #fff,
border-radius: 2px
);

// this is the delete icon's theme
$foundation-icon-theme: (
fill: #fff,
fill-focus: #eee,
transition: all 0.35s
);

// apply theme to the container
:ng-deep .ng2-tag-input.foundation-theme {
@include tag-input-theme($foundation-theme);
}

// apply theme to the tags
:ng-deep .ng2-tag-input.foundation-theme tag {
@include tag-theme($foundation-tag-theme);
}

// apply theme to the delete icon
:ng-deep .ng2-tag-input.foundation-theme tag delete-icon {
@include icon-theme($foundation-icon-theme);
}