> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 添加前后缀

## 指令说明

**描述：** 为文本内容添加前缀或后缀

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/GBkSeqm2b688g4En/helpcenter/commands/data-processing/images/appendprefixorsuffixcommand-03.png?fit=max&auto=format&n=GBkSeqm2b688g4En&q=85&s=ec8cc1c679bb3590f29116165dd0f910" alt="添加前后缀指令参数面板" width="978" height="699" data-path="helpcenter/commands/data-processing/images/appendprefixorsuffixcommand-03.png" />

    | 参数         | 说明                    |
    | ---------- | --------------------- |
    | **原始文本：**  | 输入文本字符串或者选择一个包含字符串的变量 |
    | **选择操作：**  | 添加前缀/添加后缀             |
    | **添加内容：**  | 输入添加的文本内容             |
    | **保存结果至：** | 保存内容至变量               |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/GBkSeqm2b688g4En/helpcenter/commands/data-processing/images/appendprefixorsuffixcommand-02.png?fit=max&auto=format&n=GBkSeqm2b688g4En&q=85&s=8cc35d3e28d9f8ee748631c54a63dda1" alt="添加前后缀使用示例" width="1525" height="277" data-path="helpcenter/commands/data-processing/images/appendprefixorsuffixcommand-02.png" />

**该流程执行逻辑：**

使用【设置变量】设置字符串变量：八爪鱼

使用【添加前后缀】指令为字符串变量添加后缀：rpa,将结果保存至变量

使用【打印日志】指令打印添加后缀的后的变量：八爪鱼rpa

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/GBkSeqm2b688g4En/helpcenter/commands/data-processing/images/appendprefixorsuffixcommand-01.png?fit=max&auto=format&n=GBkSeqm2b688g4En&q=85&s=41dad436cdd6458d3d25cc63184aff8d" alt="添加前后缀效果展示" width="1538" height="361" data-path="helpcenter/commands/data-processing/images/appendprefixorsuffixcommand-01.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
