# Get

With a Get-type animation, you can display the value on the mimic screen.

## Get-Expression

As shown in Figure 1, we show a random value that we generate with javascript Math.random () on the selected text object.&#x20;

![Figure 1 : Animation Type Get-Expression](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-LkGSD5wiob0QP0rouYC%2F-LkGSLzKXTzwzMnfVdH7%2Fanimation_get_expression.png?alt=media\&token=a607cd59-c7ba-4dc0-a702-e3866b9ccac1)

{% hint style="info" %}
*With Expression you can use inSCADA APIs. With ins.getVariableValue, you can read any variable and manipulate it.*
{% endhint %}

#### Example 1 :&#x20;

Display in mBar if the pressure value is less than 1.

```javascript
var pressure=ins.getVariableValue("UNIT01_HPU_PRESSURE"); // Unit Of the Value is Bar
var result=""+pressure.value+" Bar";
if (pressure.value<1) result=pressure.value*1000+" mBar"
return result;
```

#### Example 2 :

Show LOCAL/MANUAL/AUTO status as text by looking at a value of 'UNIT01\_OPERATION\_MODE'.

```javascript
var operation_mode=ins.getVariableValue("UNIT01_OPERATION_MODE"); 
// OPERATION MODES : 0 = LOCAL, 1 = MANUEL, 2 = AUTO
switch (operation_mode.value) {
 case 0:
 return "LOCAL";
 case 1:
 return "MANUEL";
 case 2:
 return "AUTO";
 default :
 return "UNDEFINED";
 } 
```

## Get-Numeric

As shown in Figure 2, we show a variable value on a selected object text object. Get-Numeric allows you to format and display a variable without writing code.

![Figure 2 : Animation Type Get-Numeric ](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-LkGSD5wiob0QP0rouYC%2F-LkGV-6SPXzyhGNFulwl%2Fanimation_get_numeric.png?alt=media\&token=bf5810c0-6ded-47cb-820c-b0acbf087ab1)

In Figure 2, on the right-hand form;

* Default Value : The value to be displayed when there is no communication. (e.g. -1)
* Condition-Value-Return : You can show different values according to the conditions that you specify on the variable value. You can add a condition by pressing the<img src="https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-LkGSD5wiob0QP0rouYC%2F-LkGYDI_EIdrwAfQhnyM%2Fcondition_add.png?alt=media&#x26;token=6a998867-7534-41d2-989a-e97bfc24ff82" alt="" data-size="line"> button. In the Condition section, you will be presented with the options you see in Figure 3. Interpretation of the example in Figure 3; Show the value 100 when the variable value is greater than 90.

![Figure 3 : Conditions](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-LkGSD5wiob0QP0rouYC%2F-LkGYr8-U2j6ldDIfZfO%2FCondition_choose.png?alt=media\&token=e4a12b88-4bec-474a-9cb9-10eab2258bac)

* Format : Sets the display format of the changed value. You can set the amount of a decimal number, the decimal separator, the number of grouping of a number, the grouping separator, the prefix, the suffix of a variable.

![Figure 4 : Numeric Format](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-LkGSD5wiob0QP0rouYC%2F-LkG_WnBfj8tmxAENR-D%2Fget_numeric_format.png?alt=media\&token=fb4d3ca6-6a92-4c83-b862-059bcb08f78c)

{% hint style="info" %}
Variable value is 739374.34656.

Group Size = 3 , Decimal = 2 , Group Seperator = ':' , Decimal Seperator = '@' , Leftpad Size = 10 , Character = 'X' , Rightpad Size = 10 , Character = 'B' , Prefix = 'TEST:' , Suffix = ':GOOD'

Output:

TEST:XXXXXXX739:374\@35BBBBBBBB:GOOD

&#x20;
{% endhint %}

## Get-Text

Used to show text on a selected text object as shown in Figure 5.&#x20;

![Figure 5 : Get Text](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-LkGbYnE39-FWAmfpOri%2F-LkGc5cqJfSljva4k3-Q%2FGet_Text.png?alt=media\&token=fd3112a4-8f71-4a89-a7a7-3df29c3a6e22)

{% hint style="info" %}
You should write the equivalent of your text in other languages. In case of changing the language in inSCADA, the corresponding text mimic will be displayed on the screen.
{% endhint %}
