]> Repositorios git - scryer-prolog.git/commitdiff
Document `when/2` Condition
authorDan Rose <[email protected]>
Sun, 18 May 2025 21:46:28 +0000 (16:46 -0500)
committerGitHub <[email protected]>
Sun, 18 May 2025 21:46:28 +0000 (16:46 -0500)
src/lib/when.pl

index 567340575d179fd73e20d0b01b64ceef76796f2a..737aea431f3987d325c873d2b7a8f1c5e2944621 100644 (file)
@@ -19,6 +19,7 @@ Provides the predicate `when/2`.
 %% when(Condition, Goal).
 %
 % Executes Goal when Condition becomes true.
+% Condition may consist of `ground(T)`, `nonvar(T)`, `C1,C2`, `C1;C2`.
 when(Condition, Goal) :-
     (   when_condition(Condition) ->
         (   Condition ->