Hi, I am new to Flexsim. I would like to run a processor only if it receives two items. I tried to use a "trigger on entry", i wrote a code but it does not work. Could you please help me finding where is the error? Thanks
object Processor7 = model.find("Processor7");
if(content(current) == 2) {
// Start processing the items
setstate(current, STATE_PROCESSING);
} else {
// Stop the processor if there are fewer than two items
stopobject(Processor7);
}
The error is the following: