La substitution de variables sur commande se produit tôt, au même moment que pour le reste de la commande if.
Variable substitution on command happens early, at the same time it does for the rest of the if command.
La commande if utilise deux groupements {}, le premier pour la condition, le second pour les actions.
The if command use two groups {}, the first for the condition, the second for the actions.
Tout d'abord, vous pouvez vérifier l'existence d'éléments d'écran en nommant l'élément d'écran correspondant dans la commande if.
Firstly, you can look for the existence of screen elements by simply naming the corresponding screen element in the if command.
Nous utilisons également la commande if pour afficher les informations d'une manière plus lisible et nous concaténons certains champs (poids et unité de poids).
We also use the if command to display the information in a better readable way, and we concatenate some fields (weight and weight unit).
Vous pouvez créer un programme de commandes assurant les opérations xcopy et utiliser la commande if dans ce programme afin de traiter le code de sortie en cas d'erreur.
You can create a batch program to perform xcopy operations and use the batch if command to process the exit code if an error occurs.
Pour traiter les codes de sortie renvoyés par diskcomp, vous pouvez utiliser la variable d'environnement ERRORLEVEL sur la ligne de commande if dans un programme de commandes.
To process exit codes returned by diskcomp, you can use ErrorLevel on the if command line in a batch program.
L'exemple suivant montre comment traiter un code de sortie de diskcomp dans un programme de traitement par lots qui utilise la variable d'environnement ERRORLEVEL sur la ligne de commande if : Copier
The following example illustrates how to process a diskcomp exit code in a batch program that uses the ErrorLevel parameter on the if command line: Copy
Vous pouvez créer un programme de commandes pour effectuer des opérations xcopy et utiliser la commande if pour traiter le code de sortie si une erreur se produit.
You can create a batch program to perform xcopy operations and use the batch if command to process the exit code if an error occurs.
De la même façon, si vous exécutez la commande if 0 ~= 0 && foo(a) == 2, LabVIEW n'exécute pas foo(a) car la première partie de l'expression est déjà fausse.
Similarly, if you execute the command if 0 ~= 0 && foo(a) == 2, LabVIEW does not execute foo(a) because the first part of the expression already is FALSE.
Pour obtenir un exemple d'un programme de commandes qui traite les codes de sortie en utilisant la commande if, voir la section Rubriques connexes.
For an example of a batch program that processes exit codes using if, see Related Topics.
User Options Dans les scripts GuiXT vous pouvez vérifier ces options utilisateur dans une commande if Q[Option=xxxx].
User Options In GuiXT scripts you can inquire about these user options with if Q[Option=xxxx].
Une autre nouveauté importante est la possibilité d'utiliser des commandes If[T] (Si) multi-lignes, c'est-à-dire commençant par une commande If[T] et se terminant obligatoirement par une commande EndIf.
Another important novelty is the ability to use If[T] multi-line commands, that is, starting with an If[T] command and necessarily ending with An EndIf command.