" /> Description - Genesys CTI User Forum

Author Topic: Description  (Read 2353 times)

Offline siddharthan B

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Description
« on: June 28, 2016, 06:37:53 AM »
Advertisement
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

Offline nonny

  • Full Member
  • ***
  • Posts: 218
  • Karma: 2
Re: Description
« Reply #1 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


Offline siddharthan B

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Description
« Reply #2 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

Offline Tambo

  • Sr. Member
  • ****
  • Posts: 456
  • Karma: 5
Re: Description
« Reply #3 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  ???

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Description
« Reply #4 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

Offline Dionysis

  • Sr. Member
  • ****
  • Posts: 408
  • Karma: 8
Re: Description
« Reply #5 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.

Offline siddharthan B

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Description
« Reply #6 on: June 29, 2016, 05:21:58 AM »
Thanks for your replies guys :)