script for mangle from 2.9.x to 3.x

How to change that script:

:for x from 2 to 254 do={ /ip firewall mangle add chain=prerouting src-address=(192.168.0. . $x ) action=mark-packet new-packet-mark=( $x . upload ) passthrough=no }

to work under MT 3.4 version?

:for x from=2 to=254 do={ 
     /ip firewall mangle add chain=prerouting src-address="192.168.0.$x" action=mark-packet new-packet-mark="$x upload" passthrough=no 
}