OPERATORS

Assignment (:=)

Store the value in a writable target.

Syntax

Signature
target := value

Description

Store the value in a writable target. The assignment expression yields the assigned value. Chained assignments associate from right to left. = is always a comparison.

Example

Assignment.prg
PROCEDURE Main()

   LOCAL nOpening
   LOCAL nBalance
   LOCAL nReceipt := 12

   nBalance := nOpening := 50
   nBalance := nBalance + nReceipt
   QOut( "Opening", nOpening, "closing", nBalance )
   QOut( "Movement", nBalance - nOpening )

   RETURN

Output