# Assign

## 아이템 블록

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

## 설정 팝업

<figure><img src="/files/1ZQdCty3PVgTLOI7bkY6" alt=""><figcaption></figcaption></figure>

## 설정 필드

### 값할당

#### 왼쪽 영역(Target)

값을 할당 할 Target 입니다. global/msg 영역에 값을 할당할 수 있으며, Assign 아이템 블록이 Loop 아이템의 반복 구간안에 위치한다면, loop 영역에 값을 할당할 수 있습니다.

#### 오른쪽 영역(Source)

할당 할 실제 값 입니다. 위 예제는 고정 된 값을 예제로 드렸지만, 다양한 타입의 값을 할당할 수 있습니다.

문자 : string 타입의 고정 값을 설정할 수 있습니다.

숫자 : number 타입의 고정 값을 설정할 수 있습니다.

true/false : boolean 타입의 고정 값을 설정할 수 있습니다.

타임스탬프 : 현재 날짜와 시간의 타임스탬프 값을 날짜 타입으로 설정할 수 있습니다.

코드입력 : JavaScript 코딩을 직접 구현하여 값을 설정할 수 있습니다. return 값이 설정됩니다.

JSON : JSON 코드를 직접 작성하여 값을설정할 수 있습니다.

배열 : JSON  코드를 이용한 배열을 작성하여 설정할 수 있습니다.

global : global 메모리 영역의 값을 불러와 할당할 수 있습니다.

msg : msg 메모리 영역의 값을 불러와 할당할 수 있습니다.


---

# 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://docs.apidrag.com/base-control/controls/assign.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.
