On execution, it returns the TruthValue attached to
SomeAtom is a evaluatable link type, it is evaluated first, so as to obtain a current TruthValue.
Set a truth value, then fetch it:
(use-modules (opencog) (opencog exec)) (Concept "A" (stv 0.8 0.3)) (cog-execute! (TruthValueOf (Concept "A")))
Arithmetic computations are possible with the returned values:
(cog-execute! (StrengthOf (Concept "A"))) (cog-execute! (ConfidenceOf (Concept "A")))