aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/not/index.md
blob: 045a9cbe3e70c35cc1aa5254ed222d542039993b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: not
slug: Web/XPath/Functions/not
tags:
  - Référence_XSLT
translation_of: Web/XPath/Functions/not
original_slug: Web/XPath/Fonctions/not
---
{{ XsltRef() }}

La fonction `not` évalue une expression booléenne et retourne la valeur opposée.

### Syntaxe

    not( expression )

### Arguments

- `expression` (optionnel)
  - : L'expression est évaluée exactement comme si elle était passée en tant qu'argument à la fonction [boolean()](fr/XPath/Fonctions/boolean).

### Retour

`True` pour une expression évaluée à `false` ; `false` pour une expression évaluée à `true`.

### Notes

- Cette fonction devrait se comporter de façon identique à la fonction [boolean()](fr/XPath/Fonctions/boolean), excepté qu'elle retourne la valeur opposée.

### Définition

[XPath 1.0, section 4.3](http://www.w3.org/TR/xpath#function-not).

### Support Gecko

Supportée.