Apama 10.15.0 | 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 the API Reference for EPL (ApamaDoc) for detailed descriptions of all types.