Clear-Host $Variable01 = [string] $Variable02 = [string] $Variable01 = Read-Host "Entrez une première valeur" $Variable02 = Read-Host "Entrez une seconde valeur" if (($Variable01.Length -igt 0) -and ($Variable02.Length -igt 0)){ Write-Host "Vous avez bien rentré 2 valeurs" } else{ Write-Host "Il manque une valeur" }