if else then Follow

0
Avatar
Efi Cohen

 hi, 

i need a script like this: if the date in text1 early than the date in text2 then the date in text3 will be text1 else the date intext 3 will be text2

thank you!!!!

1 comments

0
Avatar
Marc Engelbarts
Comment actions Permalink

Hi Parbakar,

I think you need a script like below.

date1 = "12-8-2017"
date2 = "11-8-2017"
date3 = "13-8-2018"

if date1 < date2 then value = date3 else value = date2

Regards, Marc

Please sign in to leave a comment.