Skip to content

Neq not working #7

@PedroLuis2

Description

@PedroLuis2

Hi, with the next code I expected [{'X': '5'}], but it returns ['No']:

import pytholog as pl
reglas = pl.KnowledgeBase("reglas")
reglas([ 
    "sol(3)",
    "sol(5)",
    "output(A) :- sol(A), B is 3, neq(A, B)"
])    
print(reglas.query(pl.Expr("output(X)")))

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions