displays error message if arguments don't match
INCLUDE 'prolib.h' check_equal(Type,Default,["Type has wrong value: ",Type,"\n"])
check_equal(Term1,Term2,ErrorList) (x,x,i)
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