ART Syntax Help
% Having executed #set x = "10", the processor propagates value of x to all files reached along #adapt links. % The first executed #set x overrides any subsequently found #set x commands in adapted files. % An exception from the above rule is the situation where two #set commands assign values to the same variable % in the same file. (on the same level) #set x = "10" #adapt "file2.art" #set x = "20" #adapt "file2.art"
% We adapted file2.art which creates a new scope level. The lower scope level cannot override variables % defined on higher scopr levels, therefor the #set commands in this file won't override variables % which are set earlier. This gives us the capability to have 'control' files on higher level #set x = "AAA" Value of x is ?@x? % value is not "AAA". Yes, that's right.
% ART is a configuration language not programming language. In some cases it has to work differently than % the programming languages we are used to. This is to better accommodate control over variations of the system % we are generating
Value of x is 10 Value of x is 20