How to capture Variable in KME?

This JSX snippet returns the current Illustrator File Name to the Javascript Console, but I don't know how to capture it as a KME Variable. Can someone help me?

docName.kmmacros (2.4 KB)

Just needed to change my script to:

docName = app.activeDocument.name;

and it worked.