Aron T.
Aron T.

Reputation: 448

Change visualization based on Agent Parameter

I've a question. If I create an agent from a source block based on a database with a boolean for the sort of employee (so nurse=true & office=false for nurse employee), is there an method to change the visualization, so that the nurses are visualized as nurse and an office employee as an office employee for one agent type(without making it to difficult and make the model a lot slower).

Thanks in advance.

Upvotes: 1

Views: 106

Answers (1)

Yashar Ahmadov
Yashar Ahmadov

Reputation: 1636

Yes, this is possible. Go to the agent representation at the top left corner inside your Employee agent . Place both representations and inside the Visible section, type your condition. No need to type agent.nurse==true, just (nurse==true)&&(office==false)

enter image description here

Upvotes: 1

Related Questions