Bungee Logic : Statement : Assignment

Page Status: Beta

Back to Bungee Logic Statements

Contents

[edit] Description

Assigns a value to a member of an object.

Type conversion is achieved by assigning to a field or variable of the intended type.
The target of the assignment must be a compatible type. For objects, compatible means that the two objects share a common ancestor.

Bungee Logic provides an implicit string conversion for primitives (i.e., primitives are automatically converted to string). No other conversions are presently supported for primitives.

[edit] Syntax

lvalue = rvalue;

Where:

lvalue Is a site designating the L Value for the assignment.
rvalue Is a site designating the R Value for the assignment.

[edit] Logic

 This code below is a simple assignment of a primitive to a variable.

StopIterating = true;

 

 In this assignment statement below, the Copy Action property has been set to Copy by Value.

StopIterating = Copy(TrueField);

 

[edit] Error Handling

The following assignmets will generate an error:

  • Assignment of primitive values to complex variables and members
  • Assignment of complex values to primitive variables and members
  • Assignment of primitives or complex objects onto members that are Collections
  • Assignment of NULL on to a primitive variable or member

[edit] Intrinsics

-None-

[edit] Properties

  • Copy Action — Whether the assignment will be made through copying by value or by reference.
  • From — The source (right) value of the assignement statement.
  • To — The destitnation (left) value of the assignment statement.

Tab Title Bar

[edit] See Also


Log in if you would like to rate this page.
    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.