0

problem with conditional function

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. 

 

What's wrong?

2 replies

null
    • Nick
    • 5 yrs ago
    • Reported - view

    Hi, try this

     

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

    • Birillo
    • 5 yrs ago
    • Reported - view

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

Content aside

  • 5 yrs agoLast active
  • 2Replies
  • 1062Views