Page History: For loops

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2009/09/18 02:01


For loops are accessed via the function menu, or the programming functions panel. If you type for into your worksheet it won't do what you expect.

There are two forms of for. The first is the one that appears when you first press the for button. It steps the variable through each element of the matrix in the second argument. The ε sign means 'is an element of'

For loop method 1

For loop method 1










































The second method is started the same way, but when you enter a comma the for line changes to the other mode.

For loop method 2

For loop method 2


There is a mistake in the code, it doesn't do what quite what I expected!

In order to write longer programs you need to add lines.

ScrewTurn Wiki version 2.0.37. Some of the icons created by FamFamFam.