If you ever worked with tau prolog and you're confused as to why, when you use answer.lookup("Id").id, it works but, for other values, it returns false.
Asked
Active
Viewed 26 times
0
Rob
- 14,746
- 28
- 47
- 65
-
Do not post a solution as a question – Rob Apr 16 '23 at 13:05
1 Answers
0
It's because the dict are different for nums and strings meaning you have to use answer.lookup("Num").value.
Formed this answer from the OP who put the answer within his question.
Rob
- 14,746
- 28
- 47
- 65