mardi 2 janvier 2018

where to find "if logic" module, python?

I needed to pass a variable in the "if" logic module if it's possible, so I won't need to recreate it?

What I want to achieve;

Class PythonIfModule(statement):
    # Code Logic
    Return Something

statement = '(True And True) And "(False And True)'
result = PythonIfModule(statement)

If you must know what it's for, I need it in the Certainty Factor's conjunction and disjunction of hypothesis; since the system only accepts an Evidence with a certainty factor of 1.0 (True) and 0.0 (False).

Aucun commentaire:

Enregistrer un commentaire