How do I change the greeting on Ticket according to the current Time?

Dear Friends,

I want to print on the ticket: Have a Good Day; if the time is less than 15:00 hrs

and otherwise print on the ticket: Have a Good Evening, if time is more than 15:00 hrs

How do I do this?

I tried using scripts but, failed somewhere.

Please do help me out here.

Regards,

Somil

Have not test it but should be something like this
<C00>Have a Good [=TN('{DATE:HH}') < 13 ? 'Day' : 'Evening']

2 Likes

I figured it out

[=TN(FD(’{TIME}’,‘HH’)) < 16 ? ‘Have a Great Day!’ : ‘’]
[=TN(FD(’{TIME}’,‘HH’)) >= 16 ? ‘Have a Great Evening!’ : ‘’]

3 Likes