Global Variable setup/Access

I have created a Global variable x type object, needs to assign value through code based on the logic.
Please let me know how to assign the value and access through code?
Once we assign the value through code, can the value will be accessable in the Journey like {{{variables.x}}} ?

1 Like