Hello, any reasons why this happens?
Should not this command return Array[0]? I.e., why is the length 1?
Hello, any reasons why this happens?
Should not this command return Array[0]? I.e., why is the length 1?
If you split a string that doesn't contained the passed in delimiter it will return the original string. In your example, the empty string is returned so the array has 1 entry (an empty string). Any string that you split that doesn't contain the delimiter will have the same result:
string("Test").split(",") returns Array[1]: [Test]
7 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