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

loop script help

Explorer ,
Mar 17, 2021 Mar 17, 2021

Copy link to clipboard

Copied

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

Views

287

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

You can use:

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

 

Votes

Translate

Translate
Community Expert ,
Mar 17, 2021 Mar 17, 2021

Copy link to clipboard

Copied

You can use:

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

 

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

Copy link to clipboard

Copied

LATEST

Thank you.

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