/* Define CSV Input Class */
CSV(Cashflow);

/* Financial Example */
Float rateMultiplier := 1.0;

/* Discount Factors used to price */
Float discountFactors[4] := { 0.99, 0.98, 0.97, 0.96 };

/* CSV object */
Object Cashflow {
  number -> Int,
  name -> String
};

Table Price(Cashflow) {
  number -> Int : item.number,
  price -> Float : 
  Float df;

  df = discountFactors[1];

  if( df < 1.0) then { 500.0 } else { 800.0 }
};

/* Build Table */
Tab Price results := Price(Input);

/* Print Table */
results.print();
