We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My Intention was to use ChoiceLink to get either of the EvaluationLinks, if they are present in the atomspace. also tried
(ChoiceLink (PresentLink (EvaluationLink ...)))
(OrLink (PresentLink (EvaluationLink ...))) ; just in case, was expecting an error
both also gave empty SetLink
SetLink
(SetLink (Node "OpenPsi: Energy-rule-xej90") (Node "OpenPsi: Energy-rule-pG1ez") )
(EvaluationLink (PredicateNode "OpenPsi:Decrease") (ListLink (Node "OpenPsi: Energy-rule-xej90") (ConceptNode "OpenPsi:Energy") ) ) (EvaluationLink (PredicateNode "OpenPsi:Increase") (ListLink (Node "OpenPsi: Energy-rule-pG1ez") (ConceptNode "OpenPsi:Energy") ) )
guile> (define get-nodes1 (GetLink (TypedVariableLink (VariableNode "x") (TypeNode "Node") ) (ChoiceLink (EvaluationLink (PredicateNode "OpenPsi:Increase") (ListLink (VariableNode "x") (ConceptNode "OpenPsi:Energy") ) ) (EvaluationLink (PredicateNode "OpenPsi:Decrease") (ListLink (VariableNode "x") (ConceptNode "OpenPsi:Energy") ) ) ) ) ) guile> (cog-execute! get-nodes1) (SetLink )
The text was updated successfully, but these errors were encountered:
Strange; that should work. It works if you skip the variable declaration.
Sorry, something went wrong.
Yeah, I see the problem. Working on it.
Fixed in pul req #327
thanks for the fix
linas
No branches or pull requests
My Intention was to use ChoiceLink to get either of the EvaluationLinks, if they are present in the atomspace. also tried
(ChoiceLink (PresentLink (EvaluationLink ...)))
(OrLink (PresentLink (EvaluationLink ...))) ; just in case, was expecting an error
both also gave empty
SetLink
Expected result
Content of the atomspace
Commands run
The text was updated successfully, but these errors were encountered: