Hello Yarash,
I bet you can use this…
Also since you are using a custom card that has templates enabled, you could make a custom_template (macro) repeat functions over and over.