Hi @Clara,
I think that this post by @Markus is important for your question:
If that is what you are looking for then please follow the steps in the screenshot (you would need to have followed all the steps mentioned here in the docs Create a program rule variable and Create a program rule ):
There will be a couple of steps after that which you will select the info based on your program and metadata; however please post back with an update! Thanks!