Prism 6.0 User's Guide

Modifying Data

You can use the assign command to assign new values to a variable or an array. For example,

assign x = 0

assigns the value 0 to the variable x. You can put anything on the left-hand side of the statement that can go on the left-hand side in the language you are using-- for example, a variable or a Fortran array section.

If the right-hand side does not have the same type as the left-hand side, Prism performs the proper type coercion.