There are several types of operations:
Assignment operations are coded by specifying the target of the assignment followed by an assignment operator followed by the expression to be assigned to the target. Compound-assignment operators of the form op= (for example +=) combine assignment with another operation, using the target as one of the operands of the operation. The = assignment operator is used with the EVAL and EVALR operations. The op= compound-assignment operators are used with the EVAL operation only. The assignment operators are:
*..1....+....2....+....3....+....4....+....5....+....6....+....7...+....
/FREE
if MyFunc (string1) = %trim (MyFunc (string2));
%subst(X(3))= MyFunc('abc');
endif;
/END-FREE
For more information on user-defined functions see Subprocedures and Subroutines.