Hello, in my attached model, a token is created when the content of a queue falls below a certain value. The token is then given a label with the name of the corresponding queue as its value. After that, the token should receive additional labels, where the values of the labels depend on the name of the queue. I have written a custom code for this and created two if-statements, but unfortunately, they are not functioning as expected. Ideally, the token should move to "Travel1" after "Check & Labels" until the forklift is full, and only then proceed to "Start-Unload." My question specifically pertains to the custom code "Check & Labels." More precisely, it concerns the comparison of the 'Dest' label in the if-statements. I suspect that the issue lies in the fact that "/Queue1" is a string, and hence the condition Dest == "Queue1" does not work as expected. Unfortunately, I am not sure what else I can do. (The error messages after "Start-Unload" can be ignored).
Model: Model-1.fsm