Skip Line Property

LW Python skips a statement if the statement's tab number is higher than the current internal tab number. More formally,

if the following are true:
  • the line at time t = i
  • the tab at time t = j
  • statement at line i, tab k = s
  • k > j

then the line at time (t + 1) = i + 1

For example, if the following are true:
  • the line at time 11 = 2
  • the tab at time 11 = 0
  • statement at line 2, tab 1 = a = 7

then the line at time (11 + 1) = 2 + 1

Try stepping through the simulator to see LW Python skip line 2.

Code Editor
LW Python State
Current Line1Current Tab0Time0
LW Python Simulator

Comments

Please log in to add comments