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

48

Likes

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

Adobe Community Professional , Mar 17, 2021 Mar 17, 2021
You can use:  for (var i=5; i<=7; i++)

Likes

Translate

Translate
Adobe Community Professional ,
Mar 17, 2021 Mar 17, 2021

Copy link to clipboard

Copied

You can use:

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

 

Likes

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.

Likes

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