MPE CI Programming for 7.5
July 22, 2008
Page 17
hp e3000
strategy
• all parameters are passed “by value”, meaning the parm value cannot be
changed within the UDC/script
• a parm value can be the name of a CI variable, thus it is possible for a
UDC/script to accept a variable name, via a parm, and modify that variable’s
value, e.g.
SUM a, b, result_var SUM is a UDC name
setvar !result_var !a + !b
*****
:SUM 10, 2^10, x
:showvar x X = 1034
:setvar I 10
:setvar J 12
:SUM i, j, x inside SUM: setvar x, i + j
:showvar x X = 22
parameters (cont)