---
title: VAL
description: "```javascript //Scriptfunktion 'VAL' //Wandelt eine Variable in eine Zahl um. //Beispiel: MSG=\"\" VAR=\"100 ist der Text\" MSG={MSG}Variableninhalt vor 'VAL': '{VAR}'{RET} VAR=VAL{VAR} MSG={MSG}Variableninhalt nach 'VAL': '{VAR}' DLG=DLGMESSAGE{{MSG}} ```"
url: "https://aspi-gmbh.de/docs/val/"
updated: "2026-02-02"
category: "SDK / Scriptengine / Script-Functions / Basisbefehle"
---

# VAL

```javascript

                //Scriptfunktion 'VAL'
//Wandelt eine Variable in eine Zahl um.

//Beispiel:
MSG=""
VAR="100 ist der Text"
MSG={MSG}Variableninhalt vor 'VAL': '{VAR}'{RET}
VAR=VAL{VAR}
MSG={MSG}Variableninhalt nach 'VAL':  '{VAR}'
DLG=DLGMESSAGE{{MSG}}
```
