| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2021-12-02 22:24:21 +0100 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2021-12-02 22:24:21 +0100 |
| commit | 0a32a8eeb98d5f3507edf5e303ae655f4b923c74 (patch) | |
| tree | 772d1793d7d1cdd323d598d144e1624699abcf36 /content/fate_v1/instructions/conditionals/_index.md | |
| parent | 0d2736d22ced1f9bf566192f8604f869e0f5c6b9 (diff) | |
Updating the documentation to match changes in Fate.
Diffstat (limited to 'content/fate_v1/instructions/conditionals/_index.md')
| -rw-r--r-- | content/fate_v1/instructions/conditionals/_index.md | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/content/fate_v1/instructions/conditionals/_index.md b/content/fate_v1/instructions/conditionals/_index.md index 39a51b3..f99a1cf 100644 --- a/content/fate_v1/instructions/conditionals/_index.md +++ b/content/fate_v1/instructions/conditionals/_index.md @@ -6,22 +6,36 @@ computation. Every conditional branch defines its hierarchy level, from the local variables' point of view. ### IF -{{< fatecode >}}(if [BOOL] [INSTRUCTION]){{< /fatecode >}} +{{< fatecode >}}(if [BOOL] + [INSTRUCTION] +){{< /fatecode >}} Executes `[INSTRUCTION]` if, and only if, `[BOOL]` yields true. ### IF-ELSE -{{< fatecode >}}(if_else [BOOL] [IF_TRUE = INSTRUCTION] [IF_FALSE = INSTRUCTION]){{< /fatecode >}} +{{< fatecode >}}(if_else [BOOL] + [IF_TRUE = INSTRUCTION] + [IF_FALSE = INSTRUCTION] +){{< /fatecode >}} Executes `[IF_TRUE]` if `[BOOL]` yields true, but `[IF_FALSE]` if it does not. ### COND -{{< fatecode >}}(cond ([C0 = BOOL] [I0 = INSTRUCTION]) ... ([CN = BOOL] [IN = INSTRUCTION])){{< /fatecode >}} +{{< fatecode >}}(cond + ([C0 = BOOL] [I0 = INSTRUCTION]) + ... + ([CN = BOOL] [IN = INSTRUCTION]) +){{< /fatecode >}} Executes `[II]`, such that `[CI]` is the first listed boolean to yield true. ### SWITCH -{{< fatecode >}}(switch [T = COMPUTATION] ([C0 = COMPUTATION] [I0 = INSTRUCTION]) ... ([CN = COMPUTATION] [IN = INSTRUCTION]) [DEFAULT = INSTRUCTION]){{< /fatecode >}} +{{< fatecode >}}(switch [T = COMPUTATION] + ([C0 = COMPUTATION] [I0 = INSTRUCTION]) + ... + ([CN = COMPUTATION] [IN = INSTRUCTION]) + [DEFAULT = INSTRUCTION] +){{< /fatecode >}} Executes `[II]`, such that `[CI]` is the first listed computation to be equal to `[T]`. Executes `[DEFAULT]` if there is no such `[CI]`. |


