Control structures
Zurück | Kapitel 20. moregroupware coding conventions | Weiter

## Control structures

This is a complete if-example:

        if ((condition1) || (condition2)) {
            action1;
        } elseif ((condition3) && (condition4)) {
            action2;
        } else {
            defaultaction;
        }

For switch statements:

        switch (condition) {
        case 1:
            action1;
            break;
        case 2:
            action2;
            break;
        default:
            defaultaction;
            break;
        }

Zurück | Nach oben | Weiter
Global variables | Zum Anfang | Function calls