AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

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

AIC. - Artificial Intelligence Command

AIC.DecodeBase64

Top


MiniRobotLanguage (MRL)

 

AIC.DecodeBase64

Decode Base64 string

 

Intention

 

The AIC.DecodeBase64 command decodes a Base64-encoded string back to its original format. Useful for decoding data received from API responses or encoded files.

 

Syntax

 

AIC.DecodeBase64|$$Base64String[|$$RetVar]

 

P1 - $$Base64String - The Base64-encoded string to decode

P2 - $$RetVar (optional) - Variable to store decoded result

 

Example

 

' Decode a Base64 string

AIC.DecodeBase64|SGVsbG8gV29ybGQ=|$$Decoded

DBP.$$Decoded ' Output: Hello World

 

' Decode API response data

AIC.DecodeBase64|$$Base64Data|$$Original

 

Related Commands

 

- AIC.EscapedString - Escape special characters

- AIC.UnescapedString - Unescape characters