Here is an example of a script that will create a new column with the desired values
Names Default To Here( 1 );
// Create an Example data table
dt = New Table( "Example", add rows( 418 ), New Column( "weekday", set each value( Row() ) ) );
// Create a new column Using a script
dt << New Column( "Weekday 2",
character,
set each value(
theList = {"Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", "Monday"};
theList[Mod( :weekday, 7 ) + 1];
)
);
Jim