There are two types of agents - large and small. So, I introduced parameter parIsLarge, which is boolean (true is large, false is small). Large agent requires a combination of two units of resources - resourceA and resourceB. Small agent requires one unit of resource - either resourceA or resourceB.
First, I wanted to use a function but it failed to work. I replaced the function by code in seize block but it still doesn't work. The code to assign the right resources based on agent's parameter. This is the error encountered. Please help to correct the code