Answers for "prolog if"

0

if else statement prolog

If -> Then; _Else :- If, !, Then.
If -> _Then; Else :- !, Else.
If -> Then :- If, !, Then.
Posted by: Guest on January-09-2021
0

prolog if

bazoo(5) :-  doSomething.
bazoo(Foo) :- Foo =/= 5, doSomeOtherThing.
Posted by: Guest on August-27-2021

Browse Popular Code Answers by Language