% Context file
% Filename: test-doifmode-buffer.tex
% Willi Egger
% 25-01-2010
% Copyright (c) 2009 BOEDE. All rights reserved.

% \enablemode[definedbefore]
\enablemode[definedwithin]

\starttext 
\startbuffer[TEST]
	\bfc Text
\stopbuffer

\doifmode{definedbefore}{\getbuffer[TEST]}

\doifmode{definedwithin}{% 
	\startbuffer[Test]
		\bfc Text
	\stopbuffer
	\getbuffer[Test]}
\stoptext
