functionfillNumString

Create array of strings with option to number

Extends from Modelica.Icons.Function (Icon for functions).

Information

Creates an array of strings with the option to enumerate the strings starting from a user specified number.

fillString(2,"hi",iStart=1,number=true)

= {"hi_1","hi_2"}

Inputs

TypeNameDefaultDescription
Integern1Number of occurrences
Stringstring" "String value
IntegeriStart1Value to start numbering if number=true
Booleannumbertrue=true to add extensions to string (i.e., {string_1, string_n...})

Outputs

TypeNameDefaultDescription
StringarrayStringString array