Forum Discussion
ChrisNewsome
6 years agoQrew Captain
I'm getting an error:
A variable declaration must end with a semi-colon.
however, I tried adding one to no effect.
------------------------------
Chris Newsome
------------------------------
A variable declaration must end with a semi-colon.
however, I tried adding one to no effect.
------------------------------
Chris Newsome
------------------------------
ChrisNewsome
6 years agoQrew Captain
Figured it out. I was putting the semi colon in the wrong spot:
var number DaysToAdd = If(
DayOfWeek([Date Shipped]) = 6,0, // Saturday
DayOfWeek([Date Shipped]) = 0,0, // Sunday
1) // else 1
;
WeekDayAdd([Date Shipped],$DaysToAdd)
Works great now! Thanks again Mark!
------------------------------
Chris Newsome
------------------------------
var number DaysToAdd = If(
DayOfWeek([Date Shipped]) = 6,0, // Saturday
DayOfWeek([Date Shipped]) = 0,0, // Sunday
1) // else 1
;
WeekDayAdd([Date Shipped],$DaysToAdd)
Works great now! Thanks again Mark!
------------------------------
Chris Newsome
------------------------------