Announcements
Given a dropdown where each element is like 2020/08 and so on.
I want to do a if statement where i compare the value of the element in the dropdown with the actual date if it is smaller than the actual date ?
How can i achieve this ?
Hi @Anonymous ,
May I ask what is the Items of DropDown?
Let us assume it below.
Insert a TextLabel for showing the result.
If(DateDiff(Today(),Dropdown2.Selected.Value,TimeUnit.Months)>0,true,false)
Hope this will help you,
Best Regards,Tina
There you go,
I have used this condition under a Text Label Control. You could use it anywhere you feel like but make sure you adjust the code as per your requirement:
If(IsBlank(Dropdown1.Selected.Value),Text( Today(), "yyyy/mm" ),If(DateValue(Dropdown1.Selected.Value)<Today(),Text( Today(), "yyyy/mm" ),Dropdown1.Selected.Value))
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 883
Valantis 571
11manish 477