SamahSohrab607228

scripting within Automic - time comparison

Discussion created by SamahSohrab607228 on Jan 23, 2014
Latest reply on Mar 12, 2014 by Steven_Nguyen_130

Hello,

I'd like to change a value of one of my prompt variables based on Time. I have written it like this, but I'm not sure how Automic handles time comparisons

:if &$phys_time_HH_MM_SS# > "00:01:00"
:  if &$phys_time_HH_MM_SS# < "01:00:00"
:    SET &ETL_COMPLTE_YN# = "Yes"
:  endif
:endif

Can I use an AND operator? The examples in the documentation did not show if I can do an AND with two different operands.

Also is the correct way to handle time comparisons?

Thanks
Samah

Outcomes