Abonarse a Cómo- A Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Rubí Si, Otro Si Mando Sintaxis

El Rubí lengua has un muy sencillo control estructura o sea fácil a lectura y seguir.

Si sintaxis

si var == 10
     marca “ variable es 10″
fin

Si Otro Sintaxis

si var == 10
   marca “ variable es 10″
otro
   marca “ variable es algo otro”
fin

Si Otro Si Sintaxis

Herejía’ el tecla diferencia entre Rubí y más otro lenguajes. Nota aquel “ otro si” es efectivamente deletreado “elsif” sin el e.

si var == 10
   marca “ variable es 10″
elsif var == “20″
   marca “ variable es 20″
otro
   marca “ variable es algo otro”
fin

Ternario ( abreviar si afirmación) Sintaxis

Ternario sintaxis es lo mismo en Rubí como más lenguajes. El partidarias muestra testamento marca “ el variable es 10″ si var es igual a 10. De otra manera estará marca “ el variable no está 10″.

marca “ el variable es ” + (var == 10 ? “10″ : “no 10″)

| Más
Esto artículo estado originalmente escrito en 10/31/09 Rotulado con: Rubí

Diaria Correo electrónico Actualizaciones

Usted lata obtener nuestro cómo- a artículos en su bandeja de entrada cada día gratis. Justa entrar su nombre y correo electrónico abajo:


Nombre:
Correo electrónico:

Nuestro Amigos
Recogiendo Comenzado


Acerca de Cómo- A Geek
Cuál Es Aquel Proceso?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Derechos de autor © 2006-2009 HowToGeek.com. Reservados todos los derechos.