The script command returns the value of a field from structure input.
Syntax
|
Description
|
value= getfield(input, field);
|
Returns the value of a ‘field’ from structure ‘input’.
|
Example
>x=struct;
>x.t=10;
>?getfield(x,'t');
result:
10
See Also
isfield
,
setfield