next up previous contents
Next: Data access Up: The tcng language Previous: The drop construct   Contents

The if construct

Classes are selected using the if construct.

The if construct consists of the the keyword if, followed by a Boolean expression, using the normal expression syntax. tcng converts this to an equivalent configuration for the classification mechanism(s) provided by the respective ``target''.

Note that if clauses are considered part of the class construct and are therefore not individually terminated with semicolons. Instead, a single semicolon (or block) is put at the end of the class construct.


    if something
    if something_else;


class (...)
    if something
    if something_else

but not

class (...)
    if something;     /* WRONG ! */
    if something_else;


Martin A. Brown 2003-11-06