problem with conditional function
B

Hi! I want to show a bell if today is between two particular days (Start day, named 'Data Inizio', and End day, named 'Data termine'). I've written this code:

if 'Data inizio' <= today() <= 'Data termine' then
styled("", "", "bell")
end

but it doesn't work correctly. 

 

1

What's wrong?

N

Hi, try this

 

let d := today();
if d >= DateStart and d <= DateEnd then
styled("", "", "bell")
end

B

great! it's ok, thank you!!!

Reply