Processing order of CScript functions

Top  Previous  Next

Compile-time functions existing on a line are processed from the right to the left.

Examples:

Usage:

The value is "%vof(abc)" %set(abc,'123')

 

The evaluation sequence:

The value is "%vof(abc)" %set(abc,'123')

The value is "%vof(abc)"               

The value is "123"                     

 

Usage:

%vof(aaxyz) %set(aa%vof(cc),'qwer') %set(cc,'xyz')

 

The evaluation sequence:

%vof(aaxyz) %set(aa%vof(cc),'qwer') %set(cc,'xyz')

%vof(aaxyz) %set(aa%vof(cc),'qwer')    

%vof(aaxyz) %set(aaxyz,'qwer')         

%vof(aaxyz)                            

qwer