I need a function that given a certain code checks the knowledge base and returns a fact.That is, my main fuction only receives a code and this new function I want to make just does the decode so that everytime I make a query I dont have to put the fact( in my case the fact has an arity of 12 :|).
Can this be done?
Can this be done?