# Funciones lógicas

En esta sección se describen funciones de gestión de operaciones lógicas. Todas las funciones pueden utilizarse tanto en el script de carga como en las expresiones de gráficos.

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/LogicalFunctions/logical-functions.htm)

#### IsNum

Devuelve -1 (True) si la expresión se puede interpretar como un número, si no 0 (False).

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/LogicalFunctions/logical-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/LogicalFunctions/logical-functions.htm)IsNum( expr )

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/LogicalFunctions/logical-functions.htm)

#### IsText

Devuelve -1 (True) si la expresión tiene una representación de texto, si no 0 (False).

[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/LogicalFunctions/logical-functions.htm)[](https://help.qlik.com/en-US/qlikview/Subsystems/Client/Content/QV_QlikView/Scripting/LogicalFunctions/logical-functions.htm)IsText( expr )

Nota informativaAmbos IsNum y IsText devuelven 0 si la expresión es NULL.

Ejemplo:

El ejemplo a continuación carga una tabla inline con valores de texto y valores numéricos, y añade dos campos para verificar si el valor es un valor numérico o de texto.

```
Load *, IsNum(Value), IsText(Value) Inline [ Value 23 Green Blue 12 33Red];
```

```
 
```

La tabla resultante tiene el siguiente aspecto:

Example 1

| Value | IsNum(Value) | IsText(Value) |
| --- | --- | --- |
| 23 | -1 | 0 |
| Green | 0 | -1 |
| Blue | 0 | -1 |
| 12 | -1 | 0 |
| 33Red | 0 | -1 |