• Variable with counter

    From =?UTF-8?Q?J=c3=b6rg_Buchholz?=@21:1/5 to All on Tue Jan 14 14:16:51 2020
    Hello,

    is it possible to create variables with a counter, like A1, A2, A3 and
    so on?

    What I want do do is the following:

    do for [i=1:4]{
    stats 'test.csv' every ::3:i:7:i u 6 nooutput
    print STATS_min
    }

    This print the min value from block 1 - 4 to the display. But I want to
    have it at 4 different variables, like B1, B2, B3, B4.

    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Karl Ratzsch@21:1/5 to All on Tue Jan 14 19:28:25 2020
    Something like "help arrays" ?


    Am 14.01.2020 um 14:16 schrieb Jörg Buchholz:
    Hello,

    is it possible to create variables with a counter, like A1, A2, A3 and
    so on?

    What I want do do is the following:

    do for [i=1:4]{
    stats 'test.csv' every ::3:i:7:i u 6 nooutput
    print STATS_min
    }

    This print the min value from block 1 - 4 to the display. But I want to
    have it at 4 different variables, like B1, B2, B3, B4.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=c3=b6rg_Buchholz?=@21:1/5 to Karl Ratzsch on Wed Jan 15 08:20:10 2020
    On 14.01.2020 19:28, Karl Ratzsch wrote:
    Something like "help arrays" ?

    Thanks for the hint.

    array B[4]
    do for [i=1:4]{
    stats 'test.csv' every ::3:i:7:i u 6 nooutput
    B[i] = STATS_min
    }

    This works.

    Jörg


    Am 14.01.2020 um 14:16 schrieb Jörg Buchholz:
    Hello,

    is it possible to create variables with a counter, like A1, A2, A3 and
    so on?

    What I want do do is the following:

    do for [i=1:4]{
    stats 'test.csv' every ::3:i:7:i u 6 nooutput
    print STATS_min
    }

    This print the min value from block 1 - 4 to the display. But I want to
    have it at 4 different variables, like B1, B2, B3, B4.



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)