Answer the question
In order to leave comments, you need to log in
How to perform a logical operation (OR) on a number in SWI-Prolog?
My attempt:
?- A = 13, B = 1.
A = 13,
B = 1.
?- C is (A \/ B).
ERROR: is/2: Arguments are not sufficiently instantiated
What's wrong? It's like a built-in predicate, so it should work. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question