8 Built-in predicates |
Example.
The following shows a simple use of is and >. It shows how we
can use variables in the expressions, as long as they are bound before
(to the left) they are used.
cilog: ask X is 3+4*5 & X*2 > 11*3.
Answer: 23 is 3+4*5 & 23*2>11*3.
There is one non-arithmetic comparison:
X and Y must be bound enough to determine whether they can be unified. (Delaying is not implemented). This may be fixed in future versions.8 Built-in predicates |