# 서버단 명령의 반환값

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

반환 값은 문자열 및 숫자와 같은 단순 유형과 배열 및 객체와 같은 복합 값 유형을 지원합니다.

서버 명령을 생성할 때 서버 명령 편집 대화 상자에서 반환 값 탭을 선택하고 "반환 값 추가"를 클릭하면 매개 변수 이름과 매개 변수 유형을 설정할 수 있습니다.

<figure><img src="/files/9qpqmZ4PU27n3tb0RaNl" alt=""><figcaption></figcaption></figure>

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

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

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

<figure><img src="/files/9l97aBbxl2QlFv5JuFHG" 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/forguncy-v9/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.
