Using agent name as a condition for a selectOutput in AnyLogic

253 Views Asked by At

I have a simulation that has two agent types. Applicants and Priority Applicants. (Priority Applicants are created by splitting Applicants.) There are two Services, Normal Issuance and Priority Issuance. I need to direct agents to the counters based on the agent type.

SelectOutput

I have tried using below code in SelectOutput condition. In "If condition is true", I have used the condition,

agent InstanceOf Applicant

But this is giving me 3 errors.

error messages

Is there a way to fix those errors? Or is there any other way to achieve this?

1

There are 1 best solutions below

2
On BEST ANSWER

instead of InstanceOf with Capital I and O, use instanceof (only lowercase)

I don't know if that solves the errors you have, but that's at least 1 of the errors you need to solve.