HJDrescher The pairs for ... endfor and do ... while are structures to manage repetitive tasks, e.g., automatically fit 10 spectra with identical start values. The if ... endif pair is used to run a certain part of a code in case a logic expression is true, e.g. a>b. Details are given in the manual and in the online help. displayhelptopic "Loops" displayhelptopic "Conditional Statements In Functions" If you are new to Igor (and programming in general) I would highly recommend to read the first chapters of the manual and do the guided tour. HJ Log in or register to post comments January 23, 2017 at 01:57 am - Permalink
modou Thank you.what's mean for exemple i+=1 or i+=2? or +=? Log in or register to post comments January 23, 2017 at 03:03 am - Permalink
HJDrescher i += 1 // Increment the loop variable. It increments the loop variable by one. ( // starts a comment) Please read the manual. I highly recommend "Getting Started (Vol 1)" and - once you are familiar with Igor - "Programming (Vol IV)". HJ Log in or register to post comments January 23, 2017 at 03:40 am - Permalink
The pair is used to run a certain part of a code in case a logic expression is true, e.g. a>b.
Details are given in the manual and in the online help.
If you are new to Igor (and programming in general) I would highly recommend to read the first chapters of the manual and do the guided tour.
HJ
January 23, 2017 at 01:57 am - Permalink
January 23, 2017 at 03:03 am - Permalink
It increments the loop variable by one. ( starts a comment)
Please read the manual.
I highly recommend "Getting Started (Vol 1)" and - once you are familiar with Igor - "Programming (Vol IV)".
HJ
January 23, 2017 at 03:40 am - Permalink