This is my first question and it's very important to me. I'm trying to make a simple program. I'm new in Prolog and don't know how to use logical operators, can anyone help? Thanks!
lamp(on):-energy(on).
ELSE lamp(off).
Important: I'm using SWI-Prolog.