In the Attached model, In the Register at Kiosk container, in the activity Walk to kiosk, I want to have the patient first in the array and the companion to be second but I cannot figure out the syntax for this command.
Thanks for your help.
Tee
In the Attached model, In the Register at Kiosk container, in the activity Walk to kiosk, I want to have the patient first in the array and the companion to be second but I cannot figure out the syntax for this command.
Thanks for your help.
Tee
Hi @tee.hiett, use .unshift() instead of .push().
Here is a link to the documentation: https://docs.flexsim.com/en/20.2/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Array.html#Method-unshift
Thanks, @benjamin.w2 for the solution and the reference to the documentation.
Tee
13 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved