POV-Ray : Documentation : 2.8.4.6 Control Flow Directives
  POV-Ray 3.6 Documentation Online View  
2.8.4.5 Version Identfier   2.8.4.7 Message Streams

2.8.4.6 Control Flow Directives

Conditionally parse a section of the scene file, depending on a boolean expression:
IF_DIRECTIVE:
#if ( BOOL ) TOKENS [#else TOKENS] #end
TOKENS:
Any number of POV-Ray keywords, identifiers, values and/or punctuation.
Conditionally parse a section of the scene file, depending on the existence of an identifier:
IFDEF_DIRECTIVE:
#ifdef ( IDENTIFIER ) TOKENS [#else TOKENS] #end
IFNDEF_DIRECTIVE:
#ifndef ( IDENTIFIER ) TOKENS [#else TOKENS] #end
Conditionally parse a section of the scene file, depending on the value of a float expression:
SWITCH_DIRECTIVE:
#switch ( FLOAT ) SWITCH_CLAUSE... [#else TOKENS] #end
SWITCH_CLAUSE:
#case ( FLOAT ) TOKENS [#break] |
#range ( F_LOW, F_HIGH ) TOKENS [#break]
Repeat a section of the scene file while a boolean condition is true:
WHILE_DIRECTIVE:
#while ( LOGICAL_EXPRESSION ) TOKENS #end

Quick Reference Contents

2.8.4.5 Version Identfier   2.8.4.7 Message Streams


Copyright 2003-2004 Persistence of Vision Raytracer Pty. Ltd.