at:byexample
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| at:byexample [2008/08/12 15:15] – * tvcutsem | at:byexample [2009/10/08 14:11] (current) – tvcutsem | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| </ | </ | ||
| - | Here, '' | + | Here, '' |
| The above block is triggered upon discovering one object of the appropriate (sub)type. If one wants to trigger a block every time an object of the appropriate type is discovered, execute: | The above block is triggered upon discovering one object of the appropriate (sub)type. If one wants to trigger a block every time an object of the appropriate type is discovered, execute: | ||
| Line 109: | Line 109: | ||
| <code javascript> | <code javascript> | ||
| whenever: minutes(1) elapsed: { | whenever: minutes(1) elapsed: { | ||
| - | // code to execute | + | // code to execute |
| } | } | ||
| </ | </ | ||
at/byexample.1218546903.txt.gz · Last modified: (external edit)
