I am trying to execute the if & else code but unable to pass through the condition
{
if(($ENV_TYPE = 'Dev') && ($REGION_CODE = 'eus2'))
{
}
else
{
}
}
Both the env_type
and region_code
values are getting from env variables
I get this error:
The token '&&' is not a valid statement separator in this version.
CodePudding user response:
if ($ENV_TYPE -eq 'Dev' -And $REGION_CODE -eq 'eus2'){
}