Reference variable in quoted value/string

Inside the proxmox_vm_qemu resource, I have the following directive through which I set the ip of the vm:

ipconfig0 = "ip=10.0.0.10/24,gw=10.0.0.1"

I would like to use a variable instead of the hardcoded ip, so for example something like:

ipconfig0 = "ip=var.ip/24,gw=10.0.0.1"

If course, if I do that, I expect it to interpret var.ip literally. Is there anyway I can force terraform to interpret it as a variable name?

Thanks!

Ok, never mind, it works just like in the template: ${var.ip}