vbscript – Filter

**FUNCTION:** `Filter(inputStrings, value[, include[, compare]])`

**Description**
Filtre un tableau de chaînes sur une valeur.

**Syntax**
`Filter(inputStrings, value[, include[, compare]])`

**Paramètres**
– *(aucun)*

**Exemples**
« `vb
Dim a
a = Array(« log.txt », »data.csv », »log2.txt »)
a2 = Filter(a, »log »)
WScript.Echo Join(a2, », »)
« `

**Output :** `log.txt,log2.txt`

vbscript – LTrim / RTrim

**FUNCTION:** `LTrim(string) / RTrim(string)`

**Description**
Supprime les espaces à gauche/droite.

**Syntax**
`LTrim(string) / RTrim(string)`

**Paramètres**
– *(aucun)*

**Exemples**
« `vb
WScript.Echo « [ » & LTrim( » hi ») & « ] »
WScript.Echo « [ » & RTrim(« hi « ) & « ] »
« `

**Output :** `[hi] ; [hi]`

vbscript – StrComp

**FUNCTION:** `StrComp(string1, string2[, compare])`

**Description**
Compare deux chaînes (0 égal, <0, >0).

**Syntax**
`StrComp(string1, string2[, compare])`

**Paramètres**
– *(aucun)*

**Exemples**
« `vb
WScript.Echo StrComp(« abc », »ABC », 1)
« `

**Output :** `0`