Decision tables: Difference between revisions
→{{header|Picat}}: Added {{out}}, added subsections.
(→{{header|Picat}}: Added {{out}}, added subsections.) |
|||
Line 1,807:
=={{header|Picat}}==
===Interactive version===
<lang Picat>import util.
%
Line 1,853 ⟶ 1,854:
end
end.
conditions(Conditions) =>
Line 1,871:
].</lang>
{{out}}
<pre>
Please answer the questions with YyNn.
Line 1,883:
Check for paper jam</pre>
===All possible answers/combinations===
For debugging purposes it it's nice to be able to print all the possible combinations of answers/solutions.
Line 1,908 ⟶ 1,909:
nl.</lang>
{{out}}
<pre>
p = [1]
|