The syntax is just keywords that appear in a line of text.
The first % in a line acts as a comment, which is output verbatim
End by being enclosed in [] brackets.
A string enclosed in brackets [ ] is treated as a macro string.
Example
We have here two macros, DEFAULT and REQUIRED. We can pass a value to a macro if there is no default value, if the keyword is not set for that macro.
# If the first % does not begin a comment
DEFAULT REQUIRED
# If the first % does begin a comment, output it verbatim
# A = this is a test
# B = this is another test
# C = this is third test
%%IF A=C[line of text]B[line of text]A[line of text]
#D = this is fourth line of text
%%ENDIF
#End of example
This is the output.
You'll notice that we have a lot of empty lines. This is not always the case. The macros work like this.
A = a line of text
B = a line of text
C = a line of text
D = a line of text
%%IF A=C[line of text]B[line of text]A[line of text]
A = line of text
B = line of text
C = line of text
%%ENDIF
i.e. first the line of text then the two strings.
Here is another example, this one should be fairly obvious.
DEFAULT REQUIRED
# End of example
This is the output.
Here is one more example of a default macro, VARIABLE is a macro that simply returns the value of the variable it is in.
VARIA 70238732e0 berlfri
https://wakelet.com/wake/2kvkgMcbiJ_zi_2MGwMn-https://wakelet.com/wake/SFc3dr6CnJzh02S4fT_eqhttps://wakelet.com/wake/37vb8kx1WgMK8GA1bZ4NGhttps://wakelet.com/wake/IKQiV_BpZ0M5basMFlUtAhttps://wakelet.com/wake/c0D2N75kZZL7E5r31KVTvhttps://iskalatinamerica.ning.com/photo ... bum:547626 https://biodiversidad.gt/portal/checkli ... p?clid=422 http://39.98.137.243:1003/message/message.php?lang=en http://cgi3.bekkoame.ne.jp/cgi-bin/user ... /yybbs.cgi http://otna1270.pro.tok2.com/2014-joyful/joyful.cgi