Vex CORTEX Instrukcja Obsługi Strona 58

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 166
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 165 166

Komentarze do niniejszej Instrukcji

Brak uwag