0

Add if

I need to add an if statement to this code. How woulid I do that? https://code.sololearn.com/c22HE9G7C1r7/?ref=app

10th Jun 2019, 4:29 PM
Jose Rodriguez
Jose Rodriguez - avatar
4 Réponses
+ 1
Jose Rodriguez, you mean that if I Add 90 days to today, then it should not be in this month?
10th Jun 2019, 4:52 PM
Seniru
Seniru - avatar
0
The information you provided isn't enough to answer. it'd be helpful if you could tell us why you need to add an if statement https://www.sololearn.com/discuss/1316935/?ref=app
10th Jun 2019, 4:38 PM
Seniru
Seniru - avatar
0
I am looking to but rules into this code. Example(if I add 90 days to todays date but I want to make sure its not on the say day of the week, same number in the month, or same week of the month.) and I would like it to be in a if statment.
10th Jun 2019, 4:47 PM
Jose Rodriguez
Jose Rodriguez - avatar
0
i.e. {01/10/2019 Add 90 days 04/10/2019} if same day of month add 2 day if same day of the week THU add 1 day if its same week of the month (like 1st week) add 5 day so the output should be like 4/17/2019
10th Jun 2019, 5:34 PM
Jose Rodriguez
Jose Rodriguez - avatar