Ayuda Repeat!
Publicado por Hipocampo (9 intervenciones) el 05/03/2010 14:22:10
Hola!
Estoy usando un ciclo repeat, el cual para terminar tiene como condicion que cierta variable tome 6 valores posibles.
Escrito quedaria
Repeat
[Bloque]
Until (variable=a) or (variable=b) or (variable=c) or (variable=d) or (variable=e) or (variable=f);
Como ven, queda bastante largo.... hay alguna forma de escribirlo mas corto, asi como para el if esta el case of??
Quiero decir, por ejemplo, que quede
Until variable=a or b or c...etc
GRACIAS!
Estoy usando un ciclo repeat, el cual para terminar tiene como condicion que cierta variable tome 6 valores posibles.
Escrito quedaria
Repeat
[Bloque]
Until (variable=a) or (variable=b) or (variable=c) or (variable=d) or (variable=e) or (variable=f);
Como ven, queda bastante largo.... hay alguna forma de escribirlo mas corto, asi como para el if esta el case of??
Quiero decir, por ejemplo, que quede
Until variable=a or b or c...etc
GRACIAS!
Valora esta pregunta


0