We cleared the environment you had provided and it works as expected. Refer below:
Please bear in mind that environment values are “strings” if you set them via the UI. This can have an impact on the JavaScript logic you write in the pre-request script.