Add Other useful directives
authorJason Self <j@jxself.org>
Sun, 2 Jun 2019 16:37:50 +0000 (09:37 -0700)
committerJason Self <j@jxself.org>
Sun, 2 Jun 2019 16:37:50 +0000 (09:37 -0700)
informqr/informqr.md

index 490805c78ad3b363cad486536ac0a46135c637e5..fa5f2f26cd5e9f43cd6533d54a6e56a35f79a26d 100644 (file)
@@ -577,4 +577,56 @@ optional, depending on the action):
 To explicitly trigger a defined action, then return `true` from the
 current routine:
 
 To explicitly trigger a defined action, then return `true` from the
 current routine:
 
-    <<action noun second >>;
\ No newline at end of file
+    <<action noun second >>;
+
+Other useful directives
+-----------------------
+
+To include a directive within a routine definition \[...\], insert a
+hash "\#" as its first character.
+
+To conditionally compile:
+
+    Ifdef name;   ! use any one of these
+    Ifndef name;  !
+    Iftrue expr;  !
+    Iffalse expr; !
+    ...
+    Ifnot;
+    ...
+    Endif;
+
+To display a compile-time message:
+
+    Message "string";
+
+To include the contents of a file, searching the Library path:
+
+    Include "source_file";
+
+To include the contents of a file in the same location as the current
+file:
+
+    Include ">source_file";
+
+To specify that a library routine is to be replaced:
+
+    Replace routine;
+
+To set the game's release number (default is 1), serial number
+(default is today's *yymmdd*) and status line format (default is
+`score`):
+
+    Release expr;
+    Serial "yymmdd";
+    Statusline score;
+    Statusline time;
+
+To declare a new attribute common to all objects:
+
+    Attribute attribute ;
+
+To declare a new property common to all objects:
+
+    Property property;
+    Property property expr;
\ No newline at end of file