Developing Apama Applications > EPL Reference > Variables > Variable declarations > Primitive type variable declarations
Primitive type variable declarations
The PrimitiveTypeName is one of the primitive types: boolean, decimal, float, integer, or string.
PrimitiveVariableDeclaration
Rule components
The Identifier following the type name becomes the variable’s name. The variable name must be unique with respect to other variables declared within the same scope in which the variable declaration occurs. Variable names cannot be the same as any of the keywords listed in Lexical Elements.
Example
boolean a;
boolean b;
boolean c, d;
integer i;
float f; s
string s1;
string s2;
The diagram is also true for reference variable declarations, however additional detail about reference variable declarations is in Reference-type variable declarations.
Copyright © 2013-2015 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.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.