Prism 6.0 Reference Manual

EXAMPLES

This example assigns the value 1 to x:

assign x = 1

If x is an array, 1 is assigned to each element.

This example adds 2 to each element of array2 and assigns these values to array1:

assign array1 = array2 + 2

Note that array2 and array1 must be conformable.