# 변수 텍스트

**변수 텍스트 블록은 언제 사용하나요?**

* 데이터로 등록되지 않은 텍스트를 앱 화면에 보여주고 싶을 때 사용해요.
* 텍스트에 변수를 주고 싶을 때 사용해요. (ex. 앱 푸시 텍스트 내용을 입력할 때, 작성자 닉네임에 따라 유저에게 다르게 보여주고 싶다면 변수 텍스트 블록을 사용해요.)

**변수 텍스트 블록의 특징은 무엇인가요?**

* 변수 텍스트 블록은 텍스트 블록과는 다르게 데이터로 저장되지 않은 텍스트(글)도 앱 화면에서 보여줄 수 있어요. 예를 들면, 복합 메타에서 탭의 제목을 앱 화면에 띄우고 싶을 때 데이터 [항목 ID](https://docs.ohmyapp.io/main/guide/dictionary/item-id)와 연결하지 않고도 변수 텍스트 블록을 사용해서 텍스트(글)을 보여줄 수 있어요.&#x20;
* ${항목ID}를 입력하면 항목에 해당하는 데이터가 입력되어 보여요. 예를 들면, 변수 텍스트 블록에 "저는 ${\_userInfo.nickName}예요." 라고 작성하면, 이는 앱 화면에서 '저는','예요'는 항상 그대로지만 작성자의 닉네임에 따라 ${\_createUser.nickName}부분이 다르게 보여요. (글의 작성자 닉네임의 항목ID가\_createUser.nickName예요. )

<div align="left"><figure><img src="https://3976660509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDgfvhQgmY9NbRK0Sln7j%2Fuploads%2FtuBn9aq62j5HQjXXFrGs%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202024-02-21%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%209.01.08.png?alt=media&#x26;token=8bc487c8-ca8d-4d55-999e-28674c7b3641" alt=""><figcaption></figcaption></figure></div>

> \#변수 텍스트, #${항목ID}, #텍스트, #텍스트 입력하기, #텍스트 나타내기, #복합 메타 제목 쓸 때

2023.07.25 Jinny

## Variable Text

Put regular text or specific data into a variable and customize its display.

**When do I use a variable text block?**

* This block is used when you want to display text in your app that is not registered as data.
* This block is used when you want to add a variable to your text. (E.g., when entering text for an app notification, use a variable text block to display this message differently to different users based on their username.)

**What are the characteristics of variable text blocks?**

* Unlike text blocks, variable text blocks can display text on your app screen that is not saved as data. For example, if you want to display the title of a tab on a multiple screen app page, you can use variable text blocks to display the text without linking to the ID of specific data.
* When entering ${itemID}, the data of the specific item will appear and show as if it has been entered instead. For example, when entering "I am ${\_createUser.nickName}" in the variable text block, the app page will always show "I am" to all users but "${createUser.nickName}" will look different depending on the username of the author of a post. (The item ID of a post's author username is createUser.nickName.)

2023.07.26 Hwaran
