Olgun_Onur_Ozmen

about between time condition and define time variables

Discussion created by Olgun_Onur_Ozmen on Nov 10, 2017
Latest reply on Nov 10, 2017 by Marcin_Uracz_8382
Hi All,

I want to execute notification object at predetermined time intervals.How can i use condition time between time values ?
Second question is I want to run it in this notification object but i cannot define type of time ,this script ok but when we set &TIME_FROM#="00:00" ,all algoritm to be illogical.

:set &TIME_ALARM#="1" :SET &CURRENT_TIME# = SYS_TIME("HH:MM","TZ.TR") :set &TIME_FROM#="15:00" :set &TIME_TO#="17:00" :PRINT CURRENT_TIME:&CURRENT_TIME# :PRINT TIME_FROM:&TIME_FROM# :PRINT TIME_TO:&TIME_TO# :if &TIME_ALARM#<>0 :       if &CURRENT_TIME#>=&TIME_FROM# :             if &CURRENT_TIME#<=&TIME_TO# :                 p "&TIME_FROM#<=&CURRENT_TIME#<=&TIME_TO# done! notification will sent!" :             else :                 p "&CURRENT_TIME#<=&TIME_TO# cannot be done! notification dont send!"
:                 exit 5 :             endif :       else :           p "&CURRENT_TIME#>=&TIME_FROM# cannot be done! notification dont send!"
:           exit 5      :       endif :else :   p "TIME_ALARM false,notification will sent! " :endif


Outcomes