選股
存股
array_sum
加總每年的現金股利input: years(3, "最近N年");
input: limit1(20, "現金股利合計下限");
var: i(0);
array: ValueArray[99](0);
for i = 1 to years
begin
ValueArray[i] = GetField("現金股利", "Y")[i - 1];
end;
value2 = array_sum(ValueArray, 1, years); // 區間股利合計
if value2 >= limit1 then ret = 1;
outputfield(1, value2, 1, "近幾年合計現金股利");