Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: siddharthan B on June 28, 2016, 06:37:53 AM

Title: Description
Post by: siddharthan B on June 28, 2016, 06:37:53 AM
I need the reason for the below mentioned
1)you assign a value to a variable, the value will not inherits the variable type
2)you cannot  route an interaction based on telephony data
Title: Re: Description
Post by: nonny on June 28, 2016, 06:39:43 AM
What variable type and what are you assigning as the value?

What are you trying to do with this variable?

Sent from my SM-N9005 using Tapatalk

Title: Re: Description
Post by: siddharthan B on June 28, 2016, 06:44:39 AM
IT's generic question ...
this is  what i saw
1) When you assign a value to a variable, the value inherits the variable type. True or False?
              True          False
Title: Re: Description
Post by: Tambo on June 28, 2016, 08:25:53 AM
it's a variable !!  so the values are always different otherwise it would just be a fixed value you would use, not a variable.

or am i missing something in your question  ???
Title: Re: Description
Post by: cavagnaro on June 28, 2016, 12:25:28 PM
I'd say no. A variable depends on its type, but languages like JScript are more flexible. Depends on the scenario where you put that question.

If you assign an INT to a STRING what happens? Variable doesn't change to INT, its type is still STRING with a numeric value only.
'4' instead of 4
Title: Re: Description
Post by: Dionysis on June 28, 2016, 01:26:48 PM
As Cav said, in IRD you must specify the type of value the variable is, (string, float, int).  It will not change based on the value you put in there.

Not sure what you mean with your second question, but I'm fairly certain you can route based on telephony data but need to know what you define telephony data as.
Title: Re: Description
Post by: siddharthan B on June 29, 2016, 05:21:58 AM
Thanks for your replies guys :)