Is there a way to do an if in prolog, e.g. if a variable is 0, then to do some actions (write text to the terminal). An else isn\'t even needed, but I can\'t find any docume
( A == B -> writeln("ok") ; writeln("nok") ),
The else part is required