Separate the catch into different variables



  • Friends, how can I separate the capture into different variables?
    id (List) = [11853161045, 15517289605, 1271181147, 14699836516, 18292000626]

    id1=11853161045
    id2=15517289605
    id3=1271181147
    id4=14699836516
    id5=18292000626


  • Admin

    Using a loop, look in the loliscript guides section



  • I made it friend:
    UTILITY List "lorder" Length -> VAR "LEN"

    SET VAR "INDEX" "0"
    WHILE "<INDEX>" LessThan "<LEN>"
    PRINT "<lorder [<INDEX>]>"
    SET VAR "tok [<INDEX>]" "<lorder [<INDEX>]>"

    FUNCTION Compute "<INDEX> +1" -> VAR "INDEX"

    ENDWHILE

    tok[0] (Single) = 11853161045
    tok[1] (Single) = 15517289605
    tok[2] (Single) = 1271181147
    tok[3] (Single) = 14699836516
    tok[4] (Single) = 18292000626
    but it doesn't work here
    https://www.jorbeto.jorbeto/view/order_id/<tok[0]>


Log in to reply