I am trying to create a knowledge base. My problem has gate/1
and terminal/1
and I have defined the following rule:
gate(G) /\ terminal(T) :- (G \== T \== 1 \== 0).
What I am trying to say is that: "If there exists a gate G and a terminal T, then that implies that G is not equal to T is not equal to 1 is not equal to 0.
I get the following error: ERROR: c:/noob.pl:140:0: Syntax error: Operator priority clash
I don't even know if I am using the correct operators.