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