Current output dir is: D:\VCLCode
Current output is D:\VCLCode\out2.txt
back to D:\VCLCode\defaultOutput.txt
defaultOutput.txt
Default output is: D:\VCLCode\defaultOutput.txt
Current file is: D:\VCLCode\testInput.txt
Current output is D:\VCLCode\defaultOutput.txt
Changing output to D:\VCLCode\out2.txt
--
Back at D:\VCLCode\defaultOutput.txt
Number of variables: 5
( first,
second,
third,
fourth,
fifth )
~~~~~~~~~~~~~~~~~~~~~~~~~
Last edit: Daniel Dan 2013-11-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
VCL Processor Variables and Functions
In VCL 1.1 we introduce the following VCL processor variables and functions.
Processor variables:
Processor funcitons:
Example 1:
output:
Example 2:
~~~~~~~~~~~~~~~~~~~~~~~~
set variables = "first", "second", "third", "fourth", "fifth"
vcl.if $debugmode
Default output is: ?$defaultoutput?
Current file is: ?$currentfile?
Current output is ?$outfile?
Changing output to ?$outdir?"\out2.txt"
--
output ?$outdir?"\out2.txt"
Current output dir is: ?$outdir?
Current output is ?$outfile?
back to ?$defaultoutput?
output ?$defaultoutput?
Back at ?$outfile?
vcl.endif
Number of variables: ?$size(variables)?
while variables
( ?@variables?,
?@variables?,
?@variables? )
endwhile
Current output dir is: D:\VCLCode
Current output is D:\VCLCode\out2.txt
back to D:\VCLCode\defaultOutput.txt
Default output is: D:\VCLCode\defaultOutput.txt
Current file is: D:\VCLCode\testInput.txt
Current output is D:\VCLCode\defaultOutput.txt
Changing output to D:\VCLCode\out2.txt
--
Back at D:\VCLCode\defaultOutput.txt
Number of variables: 5
( first,
~~~~~~~~~~~~~~~~~~~~~~~~~
Last edit: Daniel Dan 2013-11-06