SCRIPT(`
if (a < b) {
"a is lower";
} else if (b < a) {
"b is lower";
} else {
"a equals b";
}
`, "a", 5, "b", 7)
SCRIPT(`
// Running total of Coupon field for all Categories up to the current Category:
var array = subset_uniquesList("Category");
var total = 0;
var curval = refVal("Category");
for (var i in array) {
var val = array[i];
total += subset_sum("Coupon", subset("Category", val));
if (val==curval) break; // Stop here
}
// Result value:
total;
`)
field1 = [field2] + [field3]
.SUBSET_SINGLETON([someOtherField], SUBSET([dateField], DATEADD([dateField], -1, "week"))
SUBSET_SINGLETON([someOtherField], ROWINDEXSUBSET(CURRENTROW()-1))
field1 = RUNNINGTOTAL([field2])
.It looks like you're new here. If you want to get involved, click one of these buttons!