Using custom variables in notes

you can refer to this post