User Tools

Site Tools


howtos:toolcoding:common_history_and_background_checks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howtos:toolcoding:common_history_and_background_checks [2010/09/20 02:37]
marcus.williams
howtos:toolcoding:common_history_and_background_checks [2010/09/29 17:59] (current)
marcus.williams
Line 19: Line 19:
  
 FIXME - do we have a best practice on the quit() return code? FIXME - do we have a best practice on the quit() return code?
 +
 +===== Simulator - both history and background optional=====
 +
 +<​code>​
 +integer $index
 +$index = 1
 +if $history == true
 + $index = $index + 1
 +endif
 +if $background == true
 + $index = $index + 1
 +endif
 +</​code>​
 +
 +Note the use of $index for indexing the appropriate view.
  
 ===== Simulator - history required, background optional ===== ===== Simulator - history required, background optional =====
howtos/toolcoding/common_history_and_background_checks.1284950254.txt.gz ยท Last modified: 2010/09/20 02:37 by marcus.williams