Merge pull request #2961 from rotu/patch-5

Document `when/2` Condition
This commit is contained in:
Mark Thom
2025-07-31 22:10:32 -07:00
committed by GitHub

View 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 ->