displays error message if arguments don't match
INCLUDE 'prolib.h' check_equal(Type,Default,["Type has wrong value: ",Type,"\n"])
void(Term1) (x) First term to be matched
void(Term2) (x) Second term to be matched
voidlist(ErrorList) (i) List which elements are to be written.
Matches Term1 with Term2. The elements of the ErrorList are written to the console(standard error stream) if this operation fails.
Term = 3 + 4, write(Term," = "), read(Answer), Correct is Term, check_equal(Answer,Correct,["You got it wrong, the correct answer is ",Correct,"."),nl.
No runtime errors.
prolog-process, client-server, object
error , write , display