I have a script that adds a few columns into data table and creates some charts. The first time I run the script I want to create the new columns, but I want to be able to run the script again on a data table that already has the added columns and just creates the charts. I'm imagining an "IF" statement that checks if a certain column is present or counts the number of columns in the table. Can anybody show me how to do either of those things and/or a different way to script what I am looking for?
Thanks.