adding the AGAIN control word
[rrq/rrqforth.git] / adoc / p_then.adoc
1 // control.asm: WORD p_then,'THEN',fasm
2
3 anchor:p_then[]
4
5 === Word: THEN
6
7 ....
8 Data stack: Compiling: ( a -- )
9 ....
10
11 "THEN" is an immediate function word that is used together with
12 <<p_if,IF>> and <<p_else,ELSE>> to implement structured execution
13 control. THEN performs the branch resolution for the stacked address
14 which pinpoints the foot address the branch offset to resolve, so that
15 at execution time there is an appropriate conditional branch past the
16 "then-part" or the "else-part" of the "structured statement".