Finally... i use pick method from old times since toip stop working for prefix from 6.something...
but later I use "easyParse"...
:if (($vtype="ip-prefix") or \
($vtype="ip6-prefix")) do={:execute ":global $vname [[:parse \":return $vvalue\"]]"}
@Lokamaya so for v6/v7 versions agnostic syntax use...
:local ipf "10.0.0.0/24" ; :put [[:parse ":return $ipf"]]
# or as on first post
:put [[:parse ":return 10.0.0.0/24"]]
and work for both IPv4 and IPv6
Reference: