# Logische functies

In dit gedeelte worden functies beschreven die logische bewerkingen behandelen. Alle functies kunnen zowel worden gebruikt in het load-script voor gegevens als in diagramuitdrukkingen.

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/LogicalFunctions/logical-functions.htm)

#### IsNum

Retourneert -1 (True) als de uitdrukking kan worden geïnterpreteerd als een getal, anders 0 (False).

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/LogicalFunctions/logical-functions.htm)[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/LogicalFunctions/logical-functions.htm)IsNum( expr )

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/LogicalFunctions/logical-functions.htm)

#### IsText

Retourneert -1 (True) als de uitdrukking een tekstrepresentatie heeft, anders 0 (False).

[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/LogicalFunctions/logical-functions.htm)[](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/LogicalFunctions/logical-functions.htm)IsText( expr )

InformatieZowel IsNum als IsText retourneert 0 als de uitdrukking NULL is.

Voorbeeld:

In het volgende voorbeeld wordt een inline-tabel met gemengde tekst- en numerieke waarden galden en worden twee velden toegevoegd om te controleren of de waarde een numerieke waarde respectievelijk een tekstwaarde is.

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

De resulterende tabel ziet er als volgt uit:

Resulting table

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