# 서버단 명령의 반환값

서버  명령을 정의할 때 비즈니스 요구에 따라 반환 값을 정의할 수 있습니다. 반환 값에는 기본적으로 반환 코드와 반환 정보가 포함되며, 더 많은 반환 값을 정의할 수 있습니다.

반환 값은 문자열, 숫자 등의 단순 형식뿐만 아니라 배열, 개체 등의 복잡한 값 형식도 지원합니다.

## 반환 값 <a href="#fan-hui-zhi" id="fan-hui-zhi"></a>

<figure><img src="/files/B7jbrEdTDcnRkakURDUg" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/r5ZhbpsLNrzEuQ4aHHCg" alt=""><figcaption></figcaption></figure>

반환값의 이름과 설명 설정할 수 있습니다.

반환 값을 정의한 후 반환 명령 생성하기에서 정의된 반환 값을 사용할 수 있습니다.

<figure><img src="/files/XT7mRsZFaTdA8FSdn7Zz" alt=""><figcaption></figcaption></figure>

서버 명령을 호출할 때 반환 값을 변수에 저장할 수 있으며, 후속 명령에서는 이 변수를 사용할 수 있습니다.

<figure><img src="/files/zEKGMLRHHOrjlmlBkUrZ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.forguncy.co.kr/command/severcmd/return.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
