Vex CORTEX Manual de instrucciones Pagina 58

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 166
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 165 166

Comentarios a estos manuales

Sin comentarios