Apama 10.1 | Apama Documentation | Developing Apama Applications | EPL Reference | Statements | Simple statements | Assignments
 
Assignments
An assignment binds a value to a variable, member, sequence element or dictionary value. The value is determined by evaluating the expression on the right side of the assignment operator :=. The result type of the expression must match the type of the variable.
Example:
integer x := 100;
sequence<float> seq := [0.0, 200.0];
seq[0] := x.toFloat();
dictionary<string, string> dict := {};
dict["key"] := "value";
For variables of the reference types, the same value can be bound to more than one variable. See Reference types.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.