Report comment

Thanks for sharing this Marc;
I love this kind of portable/modular code.
We use scripts like this in our projects quite frequently,
and even label script parameters in the script name using the same style you did.

I should note that there is a distinction (albeit subtle) between your script, and my code example though.
The script that you have provide will toggle the value of a field, whereas the code example I provided will toggle the value of a global variable.