Lucidstuck:swap!AU fanadventure (1)

Lucidstuck:swap!AU fanadventure (1)
#57
RE: Lucidstuck:swap!AU fanadventure (1)
(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.
Quote


Messages In This Thread
Lucidstuck:swap!AU fanadventure (1) - by Panur - 04-02-2018, 03:31 PM
RE: Lucidstuck:swap!AU fanadventure (1) - by Cr0w - 04-02-2018, 10:38 PM
RE: Lucidstuck:swap!AU fanadventure (1) - by Cr0w - 04-03-2018, 01:44 AM
RE: Lucidstuck:swap!AU fanadventure (1) - by Cr0w - 04-05-2018, 02:24 AM
RE: Lucidstuck:swap!AU fanadventure (1) - by Cr0w - 04-05-2018, 06:42 PM
RE: Lucidstuck:swap!AU fanadventure (1) - by The One Guy - 04-13-2018, 10:34 PM
RE: Lucidstuck:swap!AU fanadventure (1) - by Cr0w - 04-19-2018, 01:19 AM
RE: Lucidstuck:swap!AU fanadventure (1) - by Cr0w - 04-23-2018, 12:31 AM
RE: Lucidstuck:swap!AU fanadventure (1) - by Cr0w - 04-24-2018, 10:52 PM
RE: Lucidstuck:swap!AU fanadventure (1) - by Cr0w - 04-28-2018, 09:18 PM