From afc086a54b9f37acd4d90ff6cc607ab3008c78f9 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 9 Oct 2021 21:58:01 -0400 Subject: Predicate documentation --- docs/doc/control.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/doc/control.html') diff --git a/docs/doc/control.html b/docs/doc/control.html index ae1ce1e4..3c3c2f1a 100644 --- a/docs/doc/control.html +++ b/docs/doc/control.html @@ -55,7 +55,7 @@

There's no reason the condition in an if statement from the previous section has to be boolean: it could be any natural number, causing the action to be repeated that many times. If the action is never performed, the result is the statement's argument, and otherwise it's the result of the last time the action was performed.

Another option is to use a for-each statement with an argument of n: in this case the result is the list of each action's result.

If-Else

-

In most cases, the easy way to write an if-else statement is with predicates:

+

In most cases, the easy way to write an if-else statement is with predicates:

{
   threshold < 6 ?
   a  Small threshold ;  # If predicate was true
-- 
cgit v1.2.3