Evaluate Constant Property
If Python is in the "begin_expr" state at time t, and the current expression is constant c, then the "Return Value" is set to c. More formally:
if the following are true:
- expression state at time t = "begin_expr"
- the expression at time t = c
- c is constant
then Return Value at time (t + 1) = c
For example,
if the following are true:
- expression state at time 4 = "begin_expr"
- the expression at time 4 = 5
then Return Value at time (4 + 1) = 5
Try stepping through the simulator to see the "Return Value" set to 5.
Code Editor
LW Python State
Current Line | 1 | Current Tab | 0 | Time | 0 |
LW Python Simulator
Comments
Please log in to add comments