Rockwell-automation FactoryTalk View Site Edition Users Guide Manuel d'utilisateur Page 566

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 696
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 565
FACTORYTALK VIEW SITE EDITION USERS GUIDE
20–20
• • • • •
If the statement is true then the expression returns value1; if the statement is false then the
expression returns value2. Keep in mind that the statement is a mathematical equation and
true means a non-zero value, and false means zero.
Following is an illustration of the ifthenelse structure:
Nested if-then-else
It is common to nest an if-then-else structure inside the then or else part of an if-then-
else structure.
Example 1: Nested if-then-else
This expression:
If statement1 Then value1
Else if statement2 Then value2
Else value3
is interpreted in this way:
value2 value1
enter
statement
exit
true
false
Vue de la page 565
1 2 ... 561 562 563 564 565 566 567 568 569 570 571 ... 695 696

Commentaires sur ces manuels

Pas de commentaire