The modify
token allows you to modify objects in the working memory. When you click modify
and expand the square brackets, the following code is displayed:
THEN
modify [ refresh ] <enter a value>
[so that]
The token modify
is composed of several subtokens given in Table 24.12:
Table 24.12 Subtokens for modify
|
|
---|
[refresh]
| Keeps the rule in the agenda as long as the conditions are satisfied. According to the refraction principle, without being refreshed, a rule that just fired is taken out of the agenda even if its conditions are still satisfied.
|
<enter a value>
| Insert a value. The value must be an expression that returns an object.
|
[so that]
| Assign values to object attributes of the selected class.
|
|