1.3.3. Control Structures in Frames

Aus Hugo Doku

Wechseln zu: Navigation, Suche

Sometimes you want to generate output in dependence of a condition. You can do this at HuGo in the following two ways:

* use context methods according to if-structures, e.g. @#if <! !>.
* most of the context methods, have a optional condition flag; i.e. the call of the method only happens, when this condition is true, e.g. @#coding<! !>

Note Note

There are not further control structures provided by HuGo because with control structures - like loops - the Frame code becomes not readable very quickly. Loops exists indirectly, if you use slots. The slot method will be called for each XML child of the current tag. If the child provides a corresponding output method, its content will be added on the current slot position.

<not documented further yet....>


Next: 1.3.4. Streams
Persönliche Werkzeuge