Asked • 03/27/19

Prolog "or" operator, query?

I'm working on some prolog that I'm new to. I'm looking for an "or" operator registered(X, Y), Y=ct101, Y=ct102, Y=ct103. Here's my query. What I want to write is code that will: "return X, given that Y is equal to value Z OR value Q OR value P" I'm asking it to return X if Y is equal to all 3 though. What's the or operator here? Is there one?

1 Expert Answer

By:

Daniel W. answered • 04/13/22

Tutor
5.0 (888)

programming language research & software engineering for over 20 years

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.