<< Click to Display Table of Contents >> Navigation: Reference > Commands > Function definitions |
A function definition command takes the form:
DI ivar = %function,
DW wvar = %function,
DC cvar [(substring)] = %function,
D field = %function,
Here the value of the function when evaluated is placed in the variable.
Various CL functions can be used to define variables. For information on functions see the separate chapter.
Examples of function definition commands:
di $inum=%max(0,$ia,$ib,$ic),
di $check=%trun($wval),
di $check1=%round($wval),
dw $wfrac=%frp($wall),
dw $sqare=%sqrt($wmain),
dc $cbit=%str($itot),
dc $call(10:12)=%str($i5),
d $345-348=%clen($cname),