Ok I haven't really found any clear way of doing an If statement in PROLOG. I want to read a word into a variable and then run either one of 2 functions if the answer is yes or no.
Bare in mind I am very new to PROLOG so here is what I have:
read(Var),
yesVar :-
Var="Yes", yesFunction(Var), noFunction(Var).
Any help?
Thanks
Bare in mind I am very new to PROLOG so here is what I have:
read(Var),
yesVar :-
Var="Yes", yesFunction(Var), noFunction(Var).
Any help?
Thanks