AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Variable text shown as number
 
 

I don’t know why but a variable that is being assigned text from an outputmacro is coming out as a number when displayed. No idea why since the trace shows the text is coming out correctly from the outputmacro. The input to the macro is “My life was great” and the output is “Yourlifewasgreat” but after assigning to the variable it is the number 217,049

Here is the script:

$$in = join(‘_0 ” ” ‘_1 ” ” ‘_2 ” ” ‘_3)
$$in\n
$o = reverse($$in)
o\n

Here is the trace:
$$out =
. . . . , . . . . , . . . . . . . . . . System Call ^join($$out $$w , ) = yourlifewas great ) = yourlifewasgreat
. . . . , . . . . , . . . . . . . . . . NOPROBLEM (^join) => yourlifewasgreat
yourlifewasgreat
. . . . , . . . . , . . . . . . end of loop
. . . . , . . . . , . . . . NOPROBLEM (^reverse) => yourlifewasgreat
217049
=:: 217,049 =:: 
  =::
my life was great
217,049

 

 
  [ # 1 ]

Sorry that should be $o at the end of the script

 

 
  [ # 2 ]

Doesnt happen for me, but I expect it comes from a bug introduced a moment ago in CS.  I will release my current version tonight and then we see if it goes away.

 

 
  [ # 3 ]

I’m currently using version 6.0 if thats any help.

 

 
  login or register to react