|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.GetError |
Top |
MiniRobotLanguage (MRL)
AIC.GetError
DESCRIPTION
Intention
Retrieves the last error message generated by an AIC operation. This command returns a descriptive error string when an API call fails, network issues occur, or invalid parameters are provided. Returns empty string if no error occurred.
Syntax
AIC.GetError
Example
' Check for errors after API call
AIC.Chat|"Hello"
err = AIC.GetError
If err <> "" Then Print "Error: " & err