I have some rules in my Jess code which i want to modify two facts in the working memory.
The facts which have been asserted are: (assert (analysis (reasons $?c) (total ?t))))
reasons $?c
is a multislot and I want to add to this multislot if needed in rules.
For example: If a user drinks too much alcohol, I want the text "You are drinking to much alcohol which is unsafe." added as a field to the multislot (reasons $?c)
.
How would I acheive this task. I have done a lot of research and tried several methods but they are not working correctly.