The database in my Prolog file looks like this ->
stage('crepe',2,'Stir the items into a consistent dough.',[],['pot','blender']).
I want to use the following query and get this result ->
?- equipmentStage(‘crepe’, ‘blender’, Y).
Y = [‘Stir the items into a consistent dough.’] .
I tried using the following code, but when I try the query it gives back an empty list. So Prolog concludes no such thing exists. Whereas when I try the query with the first element of the list, 'pot', in the database it gives back the correct output. ->
equipmentStage(Food,Equipment,StageTxt):-
findall(Txt, stage(Food, _, Txt, _, [Equipment]),StageTxt).
So my question is how do I also get the correct result with the second item in the list? I'm new to Prolog and the help would be really appreciated!