On this page:
Single Line Modes, Loop Pass Results, Comments.
Single line modes apply to one calculation line, they are enabled by control codes at the end of the calculation line (a separating space is required).
calculation line ? -- question mark means debugging mode (ignored in loops).
calculation line # -- hash sign means silent mode, result will not be written to hy or the buffer.
calculation line & -- ampersand means accumulation mode, result will be added to the content of hy or the buffer.
calculation line && -- double ampersand means accumulation mode same as ampersand, but the result will be written to a new line.
In a script, results are only written to hy or the buffer in accumulation mode, or by the last calculation in the script.
If the last calculation in the script does not use accumulation mode or silent mode, it overwrites the previous result(s). In a loop, this applies to each pass.
Do not confuse the accumulation mode ampersand at the end of a calculation line with the ampersand as a command
(the command & clears result fily hy or the buffer, the command && adds a line break).
DO n ? :: ... -- question mark after DO n (before the double colons) means that the current result will be shown after each loop pass.
REPEAT n ? -- question mark after REPEAT n means that the current result will be shown after each loop pass.
A maximum of 40 results will be shown.
By default, the result is only shown at the end of the loop.
# comment -- comment line, starting with hash sign, will be shown in a script but not in a loop.
Comments following I1:, I*:, IF ... THEN, ALSO: or ELSE: will be shown in a loop when the condition is met.
#: comment -- comment line, starts with a hash sign and colon, will be shown in a loop.
## comment -- comment line, starts with double hash signs, will not be shown.
... ## comment -- comment can be added to a command or calculation line after space and double hash signs, will not be shown.
Commands that accept optional comments, no hash sign needed:
POMPT $variable comment -- comment will be shown.
SAVE filename comment -- comment will be written to file as comment line.
SAVE@ filename comment -- comment will be written to file as comment line.
BUFFER SAVE filename comment -- comment will be written to file as comment line.
... ABORT comment -- comment will be shown if condition is true and loop is aborted.
Comment lines in insert files are never shown.
Home, Up: Appendix, Prev: Hypatia's Commands, Next: Command Line Options