Where to use the script in label

Please post code, not screengrabs of code and especially not photographs of screens showing code. It means that we can copy and paste them to test or to edit in our answers. Post a screengrab as well if it helps give context to the code.