Next: Variable assignments Previous: Tables Contents: Contents |
start with a "?" character. If active contents is enabled, the paragraph text is evaluated as Perl code. The (boolean) evaluation result then determines if subsequent PerlPoint is read and parsed. If the result is false, all subsequent paragraphs until the next condition are skipped.
This feature can be used to maintain various language versions of a presentation in one source file:
? $PerlPoint->{userSettings}{language} eq 'German' |
Or you could enable parts of your document by date:
? time>$main::dateOfTalk |
Please note that the condition code shares its variables with embedded and included code.
To make usage easier and to improve readability, condition code is evaluated with disabled perl warnings (the language variable in the example above may not even been set).
Next: Variable assignments Previous: Tables Contents: Contents |