Hi Seyed,

>> Sorry that if my questions are too ...; I'm a beginner at Jess,

Never apologize for wanting to learn.  We all started our studies knowing
nothing.  :-)

Suffice it to say that what you have coded isn't going to work, but there
are many many ways to do what you describe.  I'm attaching a short Jess
script that does what you want while utilizing certain key features of Jess.
 It is only one of many possible solutions.  Though it is missing good
error-trapping code, the script does give an example of global-variables,
local variables, functions, flow-control, I/O, asserting and modifying
facts, and various conditional elements including the "accumulate" CE, as
well as how to structure your code.  It is sufficiently complex to give you
some additional points of study, and it builds on my reply to your last
question.

By the way, have you read this yet?  http://www.jessrules.com/jess/zen.shtml

Try the attached CLP file and study its comments.  If you have more
questions, feel free to ask.

Cheers,
Jason

-----------------------------------------------------------
Jason Morris
Morris Technical Solutions LLC
[EMAIL PROTECTED]
(517) 304-5883

Attachment: marks.clp
Description: Binary data

Reply via email to