Set address list to value of ospf area

Hi

I am trying to create a script that will put in an addresslist based on the value of the ospf area. This is how far I have come.

"/ip firewall address-list add address=[
/routing ospf area range get number=0] list=test"

This is the error I get

"value of address must have ip address before '/'"

/routing ospf area range print
Flags: X - disabled

AREA RANGE COST ADVERTISE

0 cz30201 10.30.201.0/24 calculated yes

Any help would be appreciated

try this, is working for me

/ip firewall address-list add address=[/routing ospf area range get value-name=range number=0] list=test

Thanks that works perfectly

if my answer helped you, please give me karma =)