I am a novice at programming in prolog.
I want to change the value returned by a prolog program such that it returns true / false instead of the standard yes or no.
Consider a very simple example : E.g. simple.P
node(1).
isNode(X) : node(X)
on the prolog command line if I type isNode(1) it returns with yes like:
isNode(1).
yes
My question is :
How do i change this from yes to true?
REPL
(Read,Eval,Print,Loop), or more oftenconsole
, it's the simpler way to allow a programmer to control the 'inner working' of Prolog. As a programmer, you should define your own interface to your program, thus answering with true/false or whatever you think is better to appropriate user input. – CapelliC