@sybasha
You can take my below post as a reference to convert before making the IF condition
Mark as solution if this helps
Thanks