dhcp-client gateway with interface syntax

Hi,

Hopefully a simple question but I can’t get it to work with the resources posted here.

I have a simple dhcp-client setup to run this:

if ($bound=1) do={ \
/ip route set [find comment="wlan1_marked_routes"] gateway=$"gateway-address";
}

This works perfectly.

I now need to specify the interface it goes through but something-like-this does not work:

if ($bound=1) do={ \
/ip route set [find comment="wlan1_marked_routes"] gateway=$"gateway-address"%wlan1;
}

I tried escaping %, etc, doing it from the CLI directly, to no avail, any advice?

Thanks!