I suppose you could create a text object that lists all the variables and their values.
But instead of creating the variables you can create an excel file with variables, values, comments etc. and load that excel file in the script and create the variables in the script as well from the excel file. Or you could create an include file and define all the variables in that script file. That makes it a lot easier to maintain the variables and optionally reuse them in other apps.
Thank you for your reply, Gysbert. How exactly do I "create a text object that lists all the variables and their values"? Sorry if my question's not clear. I am referring to these variables I created through the variables interface on Qlik Sense.: (please see image).
I need a text file of it for the documentation of the app. It would be very tedious to copy-paste each variable. Is there a way to export the names and definitions to a file one time?