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
for ... endfor
anddo ... 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 "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
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