optional clauses, 译作可选子句。在这里记作 OC
类型 | 实例 | 计算公式 | 计算示例 |
---|---|---|---|
次数匹配 (Integer) |
3 | 3 | |
逆向次数匹配 (Negative Integer) |
-2 | OC-2 | |
百分比匹配 (Percentage) |
75% | floor(OC * 75%) | 5*75% = 3.75 ≈ 3 |
逆向百分比匹配 (Negative Percentage) |
-25% | OC - floor(OC * 25%) | 5*25% = 1.25 ≈ 1 5 - 1 = 4 |
组合匹配 (Combination) |
3<90% | OC ≤ 3 ? OC : floor(OC*90%) | |
多组合匹配 (Multiple Combination) |
2 < -25% 9< -3 | if OC < 3 then OC else if OC ≥ 3 && OC ≤ 9 then OC - floor(OC*25%) else OC - 3 |