AnsweredAssumed Answered

Variables Javascript

Question asked by dafiter Champion on Apr 23, 2015
Latest reply on Jun 4, 2015 by rscheitlin

I am looking for a way to add two variables together into a string.


My two variables are

var defExp = "SUB_REGION='East North Central'"; var defExp2 = "STATE_NAME IN( 'New York', 'New Jersey', 'Delaware')";


I need them to stay separate until they are in:

states.setDefinitionExpression(defExp OR defExp2);


I know this works:

var  defExp = "SUB_REGION='East North Central' OR STATE_NAME IN( 'New York', 'New Jersey', 'Delaware')"; states.setDefinitionExpression(defExp);

But I need two separate variables.



Thank you