Skip to content

Commit

Permalink
added SLEEP statement docs
Browse files Browse the repository at this point in the history
  • Loading branch information
FIREdog5 committed May 29, 2021
1 parent 90d7946 commit 95229aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shepherd/tests/TESTING_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ The PRINTP statement is used to create dynamic messages, and will evaluate a pyt

Usage: `PRINTP <python expression>`

### SLEEP

The SLEEP statement is used in order to pause the execution of the .shepherd interpreter for a specified amount of time. Any LCM messages received
while the interpreter is paused will still be recorded and may be processed by the next WAIT statement that the interpreter encounters. The sleep
time may be a decimal, and is in terms of seconds.

Usage: `SLEEP <time>`

### IF

The IF statement accepts a python conditional expression, which it evaluates. All normal python rules apply. The code following the IF statement will be executed only if the expression evaluates to True in python. The IF statement must be closed using and END statement.
Expand Down

0 comments on commit 95229aa

Please sign in to comment.