AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

How to access tables?
 
 

If i want to get color of an object, i can do :

?: ( color of _~objects)
^
querydirect_sv _0 color ?)
and 
i get the color of the object

But how to get informations from a table, say literature.tbl?
For example, if the question is “what did Larry Niven write”?

?: ( what did _~author write

how to get titles of books Larry Niven wrote?

 

 
  [ # 1 ]

A table is nothing more than a syntactic shortcut for executing a collection of code on a list of data.
The literatture table creates facts like:  createfact(^title write ^author) so you get them
just like you did color
query(direct_vo ? write “Larry Niven”)

 

 
  [ # 2 ]

Simple indeed ! Thank you very much !

 

 
  login or register to react