Processing order of the functions

Top  Previous  Next

MScript functions can be embedded in any type of text. To distinguish an MScript function from the enclosing text a "@" character is used in front of the functions.

 

MScript functions existing on a text line are processed from the right to the left order.

Example 1:

The value is "@vof(v:abc)" @set(v:abc,'123')
 

The evaluation sequence:

The value is "@vof(v:abc)" @set(v:abc,'123')

The value is "@vof(v:abc)"               

The value is "123"                     

 

Example 2:

@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