I am getting this error:- If: Input string was not in a correct format

@sybasha

You can take my below post as a reference to convert before making the IF condition

Mark as solution if this helps

Thanks