Scripting Sum Count of bytes Out

what’s wrong with this script

:local gigabyte
:local name
:foreach name in=[/ip hotspot user find ] 
             do={:set gigabyte[$gigabyte+ /ip hotspot user get $name bytes-out] }
:put $gigabyte

check this, may be is the solution for you
global gigabyte
:foreach name in=[/ip hotspot user find ] do={
global byte [/ip hotspot user get $name bytes-out]
:set gigabyte [($gigabyte + $byte)]
:put $gigabyte

/ip hotspot user {
    :local gigabyte 0
    :foreach i in=[find] do={
        :set gigabyte ($gigabyte + [get $i bytes-out])
    }
    :put $gigabyte
}

Thanks i used this and work fine

:global gigabyte 0 ;
:global byte 0 ;
:foreach name in=[/ip hotspot user find ]
do={:set byte [/ip hotspot user get $name bytes-out];:set gigabyte [($gigabyte + $byte)] };
:put $gigabyteThank you for quick respond and attention.