Developing Apama Applications > Apama EPL Reference > Variables > Variable declarations > Primitive type variable declarations
Primitive type variable declarations
The PrimitiveTypeName is one of the primitive data types: boolean, decimal, float, integer, or string.
PrimitiveVariableDeclaration
Rule components
The Identifier following the data 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 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.