RE: Lucidstuck:swap!AU fanadventure (1)
04-13-2018, 10:34 PM
(This post was last modified: 04-13-2018, 10:38 PM by The One Guy.)
(04-13-2018, 04:07 PM)neferiusNexus Wrote: »>IF current_day = (Sunday, Monday, Tuesday, Wednesday, Thursday) { INT choice = 2} ELSE {INT choice =1};
This, except declare the "choice" variable before the if statement so it doesn't go out of scope, replace the = after current_day with == as we're comparing the variable not setting it, make sure that current_day is compared with eacy day seporately as we're not checking for if it is all of those days at once... and swap the 1 and 2 as those days are the ones where we do want to set the alarm.