From: Jason Self Date: Sun, 2 Jun 2019 15:28:48 +0000 (-0700) Subject: Add Statements X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b4e6f6f6d6289dc48db053be2149be75050cbc2e;p=inform-resources.git Add Statements --- diff --git a/informqr/informqr.md b/informqr/informqr.md index b91f17e..eea256b 100644 --- a/informqr/informqr.md +++ b/informqr/informqr.md @@ -283,4 +283,23 @@ To a routine: To a string: string.print() - string.print_to_array(array) \ No newline at end of file + string.print_to_array(array) + +Statements +---------- + +Each *statement* is terminated by a semi-colon ";". + +A *statement_block* is a single *statement* or a series of +*statements* enclosed in braces {...}. + +An exclamation "!" starts a comment - rest of line ignored. + +A common statement is the assignment: + + variable = expr ; + +There are two forms of multiple assignment: + + variable = variable = ... = expr ; + variable = expr, variable = expr, ... ; \ No newline at end of file