• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Sigma Notation In Adobe Acrobat Javascript!

Participant ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

Hello!

I've been trying to add a function for adding sigma notation into acrobat so I can have a responsive code for summing totals the following script doesn't work!

 

function mathSigmaSymbol (startIndex, endIndexInclusive, iteratorFunction) {
  let accumulator = 0;
  for(let i = startIndex; i <= endIndexInclusive; ++i) {
    accumulator += iteratorFunction(i);
  }
  return accumulator;
}

 

Please help me!

TOPICS
General troubleshooting , How to , JavaScript , PDF forms

Views

611

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 09, 2021 Mar 09, 2021

Change "let" to "var".

Votes

Translate

Translate
Community Expert ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

Change "let" to "var".

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 09, 2021 Mar 09, 2021

Copy link to clipboard

Copied

LATEST

THANK YOU!!!

@Nesa Nurani 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines