I don’t know what else to do about the error I keep getting trying to use modulo. I don’t use it much, so it might be a me problem.
This is the segment giving me issues:
Here’s it typed out:
*comment day of the week
*if (num_day_of_the_week > 7)
*if ((num_day_of_the_week % 7) = 1)
*set day_of_the_week “Sunday”
*set num_day_of_the_week 1
*if ((num_day_of_the_week % 7) = 2)
*set day_of_the_week “Monday”
*set num_day_of_the_week 2
*if ((num_day_of_the_week % 7) = 3)
*set day_of_the_week “Tuesday”
*set num_day_of_the_week 3
*if ((num_day_of_the_week % 7) = 4)
*set day_of_the_week “Wednesday”
*set num_day_of_the_week 4
*if ((num_day_of_the_week % 7) = 5)
*set day_of_the_week “Thursday”
*set num_day_of_the_week 5
*if ((num_day_of_the_week % 7) = 6)
*set day_of_the_week “Friday”
*set num_day_of_the_week 6
*if ((num_day_of_the_week % 7) = 0)
*set day_of_the_week “Saturday”
*set num_day_of_the_week 7
Here’s what the entire error message says:
I’ve tried changing the parenthesis, adding an extra one after the 1 so it shows = 1)), but it automatically underlines the additional parenthesis as wrong. I tried adding a leading extra one so it had something to match with, it didn’t like that either.
I’ve tried setting a separate var to day_of_the_week % 7, but it didn’t like that, even wrapping it in parentheses.
I’m at a loss. Any assistance is appreciated.