I am new to programming, please be easy with me.
I am using Informer (a reporting website) which pulls data in from Datatel (a unidata database)
What the column should do:
"If the classes are on Mon & Tue & Wed & Thur & Fri then display Mon-Fri"
So if the classes fall on all the week days I want to abbreviate the output to only display "Mon-Fri" instead of listing out all the days.
Here is the code I have: which does not work
// sec.monday(etc) is the field in the Datatel database where the values are stored
var mon = sec.monday;
var tue = sec.tuesday;
var wed = sec.wednesday;
var thur = sec.thursday;
var fri = sec.friday;
var sat = sec.saturday;
var sun = sec.sunday;
var formatDays = "";
if (mon =true) && (tue =true) && (wed =true) && (thur =true) && (fri =true);
then formatDays == mon + "-" + fri;
What am I doing wrong?