Access variables anywhere in the flow

I have a simple requirement.I want to put a value in kvm like 100.I want to put in a value like 50 in queryparam..I want to extract it using extract variable.and place it in a environment variable.

The environment variable is compared with the variable taken from kvm and compared.

I dont know how to set the environment variable.Can anyone guide me?

0 1 210
1 REPLY 1

Please refer to the Assign Message policy docs, specifically for assigning a variable.

https://docs.apigee.com/api-platform/reference/policies/assign-message-policy

Also refer to the Javascript Object Model docs, specifically the context object section.

https://docs.apigee.com/api-platform/reference/javascript-object-model#contextobjectreference-contex...

Please don't create multiple questions that are variations of the same question.