QuestionQ514

VerifiedUiPath Automation Development

What does this expression perform?

subTotalAdditions.Select(Function(field) CDec(documentFields(field))).ToList.Sum() + subtotal

Explanation

Each field listed in subTotalAdditions is used to retrieve a value from documentFields; each retrieved value is converted to Decimal using CDec, the values are summed, and subtotal is added to that sum.

Community Discussion

No comments yet. Be the first to start the discussion!