Vex CORTEX Manuel d'instructions Page 58

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 166
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 57
Reference
Project Lead The Way
©
and Carnegie Mellon Robotics Academy
©
/ For use with VEX
®
Robotics Systems
If Statements
Embedded if/if-else Statements
with Natural Language
if(condition)
{
if(condition)
{
// true-commands
}
else
{
// false-commands
}
}
Pseudocode of an embedded if Statment:
Sometimes, especially with more complex tasks, your robot will have to make multiple consecutive
decisions before performing a behavior. This can be accomplished by embedding, or placing, if
Statments within other if Statements.
(condition)
Either true or false
(true) commands
Commands placed here will run
if the (condition) is true.
(false) commands
Commands placed here will run
if the (condition) is false.
Go to Reference Links
Vue de la page 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 165 166

Commentaires sur ces manuels

Pas de commentaire