Hirdetés

Új hozzászólás Aktív témák

  • Teasüti

    nagyúr

    válasz Bozek #2243 üzenetére

    Userguide...

    If the four variables %arr1, %arr2, %arr3, %arr4 hold respectively a, b, c and d then we have an array with 4 elements. These variables can be used just like any other, however it is also possible to access them in special ways. Here are some examples:

    %arr(#)
    The number of defined array elements (4 in this case)
    %arr(#>)
    The index of the first defined array element, or 0 if none are defined (1).
    %arr(#<)
    The index of the last defined array element, or 0 if none are defined (4)
    %arr(#?b/c)
    A comma-separated list of the array indices (lowest to highest) with matching values, or 0 if none match (2,3 in the example)
    %arr(>)
    The contents of the first defined array element (a)
    %arr(<)
    The contents of the last defined array element (d)
    %arr() or %arr(:)
    All of the array elements separated by commas (a,b,c,d)
    %arr(2) or just %arr2
    The content of the element with index 2 (b)
    %arr(2:4)
    Contents of defined elements with indices 2 to 4 (b,c,d)
    %arr(:3)
    All the defined elements with indices up to 3 (a,b,c)
    %arr(3:)
    All the defined elements with indices starting from 3 (c,d)
    %arr(1:2)
    All the defined elements with indices from 1 to 2 (a,b)

    (#2241) Somatom
    [link]

Új hozzászólás Aktív témák