" /> Using IRD to perform time checks - Genesys CTI User Forum

Author Topic: Using IRD to perform time checks  (Read 1455 times)

Offline PFCCWA

  • Hero Member
  • *****
  • Posts: 655
  • Karma: -7
Using IRD to perform time checks
« on: August 01, 2022, 11:07:07 PM »
Advertisement
hello

is there a way (in IRD) to check if the current time is within parameters extracted from an OPM transaction list?
so the transaction list lookup returns this value:

[b]Transaction List Returned- W//5/08:30-17:00[/b]

then using function blocks i have these vales (assigned to variables):

[b]Current Day-5 Current Time-16:41 Current Hour-16 Current Minute-41 Open Day-5 Open Hour-08 Opening Minutes-30 Closing Hour-17 Closing Minutes-00[/b]

i am using a segmentation block to perform several checks but always have a scenario that means the checks do not work.
what script can i use to make this work without having to use an expression script that is too long.

thanks,

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Using IRD to perform time checks
« Reply #1 on: October 09, 2022, 11:50:00 PM »
May be create 3 variables of type TIME and assign to them compared values which need to be string hours:minutes (TIME t1='16:41', TIME t2='8:30', TIME t3='17:00') then compare them as you need (t1>t2 & t1<t3)