Hello,
I'm trying to create a logic for putting product into rack via a specific sequence. The sequence is determined in a Global Table named tbl_LocationMaster. My logic is as follows
- Generate a token every 15 seconds.
- Assign a label to the token with a value of a default sequence, which is 1
- Assign an address schema based on the sequence via the Global table
- Check if the address schema is empty
- When empty, place a box in the address schema
- When not empty, increment the address schema and check again if the address schema is empty
The issue I'm having is with the syntax of my Decide activity. I'm getting errors which I do not understand. The condition i specified in my Decide activity is
Storage.system.getSlot(token.Address).slotItems.length=0
but I am receiving the following errors in the Compile Console
Flexscript Error MODEL:/Tools/ProcessFlow/Rack Logic/Decide: Location Full?>variables/decision Line 9 The value of property length cannot be set Flexscript Error MODEL:/Tools/ProcessFlow/Rack Logic/Decide: Location Full?>variables/decision Line 9 Invalid type for left side of assignment operation. Must be valid l-value. Type is (invalid) Flexscript Error MODEL:/Tools/ProcessFlow/Rack Logic/Decide: Location Full?>variables/decision Could not finish parsing because of previous errors.
May I please receive some help with this? Is my logic flawed and I should be approaching this in another way? I've uploaded my project. Thanks in advance for any assistance!