AI - Direct Access

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AI - Direct Access >

AI - Direct Access

AIC.Escaped String

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Escaped String
Escape a text string for use within JSON structures

 

clip0627

 

 

 

Intention

 

The AIC.Escaped String command, also accessible through its alias AIC.ESC, is used to escape a text string for use within JSON structures. JSON structures require certain characters to be escaped, such as double quotes, backslashes, and control characters. This command makes sure the input text conforms to JSON string encoding standards.

 

Example Usage:

 

$$TXT="Hallo /n Peter"

AIC.Escaped String|$$TXT|$$RET

PRT.$$RET

ENR.

 

clip0626

 

 

Syntax

 

 

AIC.Escaped String|P1[|P2]

AIC.ESC|P1[|P2]

 

 

Parameter Explanation

 
P1 - Variable or text, this is the text that should be "escaped" for use with JSON Structures.

P2 - opt. Variable for the result, if omitted the result is been placed on TOS.

 

Example

 

'*****************************************************

' EXAMPLE: AIC.-Commands

'*****************************************************

-

 

Remarks

Make sure that the input text is properly formatted before using this command, especially if it already contains escaped characters.

 

Limitations:

-

 

 

See also:

 

  Set_Key

  Ask_Chat

  Ask_Completion