|
<< Click to Display Table of Contents >> Navigation: »No topics above this level« String Operations |
MiniRobotLanguage (MRL)
BLO.Thought
Extract content from <think> blocks by index.
Intention
Get thought content without delimiters from <think>...</think> sections.
Negative index is supported: -1 means last, -2 means second last.
Syntax
BLO.Thought|P1|P2|P3
BLO.BTH|P1|P2|P3
Parameter Explanation
-P1 - Source text.
-P2 - Index: positive from start, negative from end.
-P3 - Result variable.
Example
$$SRC=aa<think>one</think>bb<think>two</think>cc
BLO.Thought|$$SRC|-1|$$RES
' $$RES = two
ENR.
Remarks
-Index 0 returns empty.
-Outer <think> tags are removed from returned result.
See also: