> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/kalipso/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/kalipso/6.0/documentation/actions/group-others/set-value.md).

# Set Value

Assigns a value to a global/local variable or to a control.

Action available for the following operating systems:

<figure><img src="https://1102213384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM6Wz3tBjSWbCweZ8NltT%2Fuploads%2FruABjDF2Z7iy255xGivq%2F01_Supported_OS.png?alt=media&amp;token=166f7395-72c9-406f-91f1-e41412516cba" alt="OS Supported: Android, iOS, Win, Win32"><figcaption></figcaption></figure>

### Parameters

*Type of Object*

* **Control** *\<unquoted string> -* The control that the user wants to assign a value.
* **Global Variable** *\<unquoted string> -* The global variable that the user wants to assign a value.
* **Local Variable** *\<unquoted string> -* The local variable that the user wants to assign a value.
* **Multiple Assignment** *\<unquoted string> -* This option allows the user to assign values to multilple global/local variables or controls.<br>
* **Type** *\<radiobox> -* The type of the value assigned to global/local variable or control. The possible values for this parameter are: Numeric or String.
* **Value** *\<string>* or *\<numeric> -* The value to assign to the global/local variable or control. If the Type is String, user must put "" surrounding the value, otherwise user just put the numeric value to assign. User can use a Expression to assign to the variable. Please see here the Numeric Expressions and String Expressions.

### Usage

* Example 1

Set Var(CTRL(Button1); Numeric; 5)\
**Result:** CTRL(Button1) = 5

* Example 2

Set Var(VAR(0); String; "Kalipso")\
**Result:** VAR(0)="Kalipso"

* Example 3

Set Var(CTRL(Button1); VAR(0); String; "Kalipso")\
**Result:** CTRL(Button1)=VAR(0)="Kalipso"

{% hint style="info" %}
This action enforces the type of the global/local variable or control (Example: an assignment of type Numeric to a VAR(0) that is of type String, changes the type of VAR(0) to Numeric).
{% endhint %}
