## Macro Command Reference

`dataloop <BUFFER> [step]`

Starts a loop for all data points in the given buffer. The running variable for the loop command is `l`, in this case the same as the point number in the buffer. During the loop the variables `lx`, `ly`, `lxe`, `lye` contains the values of the corresponding data point. It is not possible to nest loops.

`BUFFER`

a list of one or more data buffers. Possible values are:

`all` | all buffers in the document
`selected` | selected buffers in the document
`unselected` | unselected buffers in the document
`visible` | visible buffers in the document
`hidden` | hidden buffers in the document
`none` | no buffer
`b1,b2,b3,...,bn` | a list of buffers where the arguments may be math expressions.
`bs..be` | buffers from bs to be