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

loop script help

Explorer ,
Mar 17, 2021 Mar 17, 2021

Is it possible to set i to affect fields between 2 numbers, for example lets say I have 10 fields how to set i to be 5-7 something like this. for (var i=1; i<=10;  i>=5&& i<=7; i++) is there a way to do it?

TOPICS
JavaScript
454
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Mar 17, 2021 Mar 17, 2021

You can use:

 for (var i=5; i<=7; i++)

 

View solution in original post

Translate
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
Community Expert ,
Mar 17, 2021 Mar 17, 2021

You can use:

 for (var i=5; i<=7; i++)

 

Translate
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
Explorer ,
Mar 17, 2021 Mar 17, 2021
LATEST

Thank you.

Translate
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