PROLOG in Excel
Artifical intelligence embedded in Excel
  1. You are here:  
  2. Home
  3. Built-in predicates & keywords

->/2 if/then/else

Last Updated: 19 May 2023

, And

Last Updated: 19 May 2023

And.

; Or

Last Updated: 19 May 2023

Or

:- op/3

Last Updated: 16 March 2023

Directive, to create infix, prefix, postfix predicates.

Read more: :- op/3

! Cut

Last Updated: 19 May 2023

Cut keyword.

Read more: ! Cut

?- Query

Last Updated: 19 May 2023

Query is the main way to interact with PliX. 

Read more: ?- Query

**/2

Last Updated: 05 February 2023

Math power. Example :         ?- X is 2 ** 3.          yes. X=8.

/* _ _ _ _ _ */

Last Updated: 15 April 2023

Block comment. Anything between /*  and  */ is ignored by the parser. It may cover several rows.

\+ (or not/1)

Last Updated: 16 March 2023

The argument has to be a goal. If the goal succeed, return "no". If it failed, return "yes".

Read more: \+ (or not/1)

=

Last Updated: 08 January 2023

Equality. Try to match both sides arguments.

=:=

Last Updated: 04 January 2023

Values of arithmetic expressions are equal.

=/=

Last Updated: 19 May 2023

Check if arithmetic value of arguments are different

arg/3

Last Updated: 04 January 2023

Example:

arg( Nposition, Term, ArgumentN).

asserta/1

Last Updated: 04 January 2023

Add argument as a new clause, at the beginning of the existing clauses.

assertz/1

Last Updated: 04 January 2023

Add argument as a new clause, at the end of the existing clauses.

atomic/1

Last Updated: 19 May 2023

Check if the argument is an atom.

call/1

Last Updated: 04 January 2023

Put the argument as a new goal to be solved.

compound/1

Last Updated: 19 May 2023

Check if the argument is a compound term (a structure).

consult/0

Last Updated: 04 January 2023

Consult program in the current worksheet.

fail/0

Last Updated: 04 January 2023

Always fail.

findall/3

Last Updated: 16 March 2023

Find all the solutions for a goal. 

Read more: findall/3

functor/3

Last Updated: 04 January 2023

Example:

functor( Term, Functor, Arity).

is

Last Updated: 04 January 2023

Force math evaluation of right side argument. Instantiate result with left side argument.

List operators [ | ]

Last Updated: 16 March 2023

The 3 basics list operators:

  •  [  beginning of a list.
  •  ]  end of a list
  •  |  head and tail separator

    Read more: List operators [ | ]

Math arithmetic operators + - * /

Last Updated: 16 March 2023

4 basic math operators   + - * /  

Read more: Math arithmetic operators + - * /

Math comparison operators

Last Updated: 12 April 2023

basic math comparison operators:  >   >=   =<   <   =:=   =\=
Force evaluation of each side arguments, then compare them, then succeed or fail.

Read more: Math comparison operators

Math operators: others

Last Updated: 12 April 2023

** : power.

Read more: Math operators: others

nonvar/1

Last Updated: 19 May 2023

Check if the argument is not a variable.

not/1 (or \+/1)

Last Updated: 16 March 2023

The argument has to be a goal. If the goal succeed, return "no". If it failed, return "yes".

Read more: not/1 (or \+/1)

number/1

Last Updated: 16 April 2023

Succeed if the argument currently stands for a number.

number/1

Last Updated: 19 May 2023

Check if the argument is a number

read/1

Last Updated: 04 January 2023

Read input from the user, and instantiate with the argument.

Rule operator :-

Last Updated: 16 March 2023

Rule.

trace() notrace()

Last Updated: 05 April 2023

?-trace. and ?-notrace. predicates activate ore deactivate the tracing utility.

Alternatively, you may click the buttons in the ribbon: console and ?-trace/notrace.

Read more: trace() notrace()

true/0

Last Updated: 04 January 2023

Always succeed.

var/1

Last Updated: 19 May 2023

Check if the argument is a variable.

write/1

Last Updated: 04 January 2023

Display the argument to the user.

Main Menu

  • Home
  • Download
  • Install
  • Tutorials
  • Built-in predicates & keywords
  • Uninstall
  • Troubleshooting
  • End User License Agreement
  • Contact us

Login Form

  • Forgot your password?
  • Forgot your username?
  • Create an account
Copyright © 2023 prologinexcel. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License.