PSeInt Esperar: pause for some seconds
Pauses before moving on to the next instruction. Gives time to read a message, or makes simple animations.
- Group:
- Structures
- Template
Esperar
Opens the editor with this example loaded. Run it step by step and watch the flowchart.
Worked example
A complete algorithm, ready to copy and run.
Algoritmo Example Escribir "3..." Esperar 1 Segundo Escribir "2..."FinAlgoritmoOutput
Shows "3...", waits a second, then "2...".
This is what the console shows when the example runs.
3...2...
Good to know
You can also give the pause in milliseconds: Esperar 500 Milisegundos.
In a flowchart
This is how it appears in a flowchart, with the same shapes Codoritmo draws.
Template
The general form. Replace what's inside < > with your own data.
Esperar 1 SegundosExamples that use it
Programs from the example library where it appears, from the simplest to the most complete.
Countdown
A rocket launch countdown that ticks second by second.
Beginner
More structures
- Definir
- Dimension
- Escribir
- Escribir Sin Saltar
- Leer
- Assignment (<-)
- Si Entonces (if)
- Si / SiNo (if-else)
- Segun (switch)
- Mientras (while)
- Repetir Hasta Que (do-until)
- Repetir Mientras Que (do-while)
- Para (for)
- Para Cada (for each)
- Limpiar Pantalla
- Esperar Tecla
- SubProceso
- SubAlgoritmo
- Funcion (function)
- Retornar (return)
Codoritmo is an independent, open-source project inspired by PSeInt and compatible with its syntax. It is not affiliated with the PSeInt project. Official PSeInt website.