| summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'content/fate_v1/instructions')
| -rw-r--r-- | content/fate_v1/instructions/_index.md | 1 | ||||
| -rw-r--r-- | content/fate_v1/instructions/loops/_index.md | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/content/fate_v1/instructions/_index.md b/content/fate_v1/instructions/_index.md index 51066d1..ec5b413 100644 --- a/content/fate_v1/instructions/_index.md +++ b/content/fate_v1/instructions/_index.md @@ -1,5 +1,6 @@ --- title: Instructions +weight: 3 --- Instructions do not return values, but modify the memory in some way or interact with the interpreter. Computations are valid instructions, and will be diff --git a/content/fate_v1/instructions/loops/_index.md b/content/fate_v1/instructions/loops/_index.md index 03c0f3b..d3c8d65 100644 --- a/content/fate_v1/instructions/loops/_index.md +++ b/content/fate_v1/instructions/loops/_index.md @@ -17,10 +17,10 @@ Executes `[I0]` ... `[IM]`, and does so again as long as, `[BOOL]` yields true. ### FOR -{{< fatecode >}}(for <pre = INSTRUCTION> [BOOL] <post = INSTRUCTION> [I0 = INSTRUCTION] ... [IM = INSTRUCTION]){{< /fatecode >}} +{{< fatecode >}}(for [PRE = INSTRUCTION] [BOOL] [POST = INSTRUCTION] [I0 = INSTRUCTION] ... [IM = INSTRUCTION]){{< /fatecode >}} -Executes `<pre>`, then, if and as long as `[BOOL]` yields true, executes -`[I0]` ... `[IM]` followed by `<post>`. +Executes `[PRE]`, then, if and as long as `[BOOL]` yields true, executes +`[I0]` ... `[IM]` followed by `[POST]`. ### FOR EACH {{< fatecode >}}(foreach [COLLECTION] {String} [I0 = INSTRUCTION] ... [IM = INSTRUCTION]){{< /fatecode >}} |


