String Operations

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

String Operations

BLO.PromptSection

Overview Top


MiniRobotLanguage (MRL)

 

BLO.PromptSection

Extract content of the Nth tagged prompt section.

 

Intention

Select one specific section wrapped by custom start and end tags.

Returned result excludes the outer tags and contains only section content.

 

Syntax

BLO.PromptSection|P1|P2|P3|P4|P5

BLO.BPS|P1|P2|P3|P4|P5

 

Parameter Explanation

-P1 - Source text.

-P2 - Start tag.

-P3 - End tag.

-P4 - Section index N (1-based).

-P5 - Result variable for section content.

 

Example

$$SRC=[SYSTEM]SYS[/SYSTEM][USER]U1[/USER][USER]U2[/USER]

BLO.PromptSection|$$SRC|[USER]|[/USER]|2|$$RES

' $$RES = U2

ENR.

 

Remarks

-Missing index returns empty output.

-Uses standard block matching behavior for delimiters.

 

See also:

BLO.Thought

BLO.GetNth