Stop code reading

Command :

STOP/

Visual overview :


Functionality :

This command allow to stop CpcdosC+ file reading.


Avaiable parameters :

  • Nothing for this version

Examples :

Example 1

Display 1 line to the screen.

txt/ My first line
stop/
txt/ My second line
txt/ My 3nd line

Display on console :

My first line

Example 2

Display 5 lines in loop

// We begin to zero
set/ value = 0

:begin:

// We add +1 to the "value" variable
set/ value = /C(%value% + 1)

txt/ I'm at %value% nd value!

// If value is strictly at "5", then we jump to "end" label
if/ "%value%" == "5" then: stop/

// Else, we loop at "begin"
goto/ begin

Display on the console

I'm at 1 nd value!
I'm at 2 nd value!
I'm at 3 nd value!
I'm at 4 nd value!
I'm at 5 nd value!