BehaviourComposer: ignore everything before this.
Begin description: Set two attributes, parameters, or NetLogo variables to new values. End description
Set two attributes
Begin NetLogo code:
substitute-text-area-for attribute-name-1 my-a substitute-text-area-for attribute-value-1 1 substitute-text-area-for attribute-name-2 my-b substitute-text-area-for attribute-value-2 2 set attribute-name-1 attribute-value-1 set attribute-name-2 attribute-value-2
End NetLogo code
The second and fourth text areas can contain any value or an expression that will evaluate to a value. To repeatedly update these attribute use the 'Enhance' menu to make this repeat.
How this works
The BehaviourComposer treats specially variables whose name begins with "my-" or "my-next-". Note that, unlike NetLogo, you don't need to declare "breed" variables. More details in the programming guide.
Set an attribute, parameter, or NetLogo variable to a new value sets a single attribute.
Set two attribute was implemented by Ken Kahn.
BehaviourComposer: ignore everything after this.