11-30-2018 02:22 AM - edited 03-15-2019 06:44 AM
Hello all,
I am trying to do a if statement date check, what i would like to do is for the system to check the date, and if it falls between for example 10 Feb and 24 April = true else false. Below is something i have come up with but keep getting errors and am now going around and around.
Set i_date = D[now]
If (i_date.date => 18 && i_date.month => 02) && (i_date.date <= 14 && i_date.month <= 04) == true
However i am getting a little confused what type of variable type to use either, int, String or Date? Also on the check "=>" is it possible to use a variable instead of hard coding it into the script then I can set that variable to be a parameter.
Thanks for your help.
Rich
Solved! Go to Solution.
11-30-2018 09:03 AM
You should see some success with the following
E.g.,
d[now] >= d[2/10/2018] && d[now] <= d[4/24/2018]
11-30-2018 09:03 AM
You should see some success with the following
E.g.,
d[now] >= d[2/10/2018] && d[now] <= d[4/24/2018]
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide