HistoryCal - V0.0.7 Manual
mark & clear

Home Development V0.0.7 Manual Script mark & clear

mark & clear Statements

Unless directed otherwise, the program will remember all variables and defined entities, even after the script has finished running. The statements mark and clear are used to control this behaviour.

Entities are added to the library as they are encountered in the script. This can be particularly problematic when testing a new script, when we may want to make small changes and re-run the script. Without using 'mark', it would try to add another copy of the entity which would result in an error.

FormatExample
mark string_expr; mark "start-test";
clear string_expr; clear "start-test";
clear; clear;

mark Statement


Valid XHTML 1.0 Strict

12th October 2016