Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Adobe Launch: What is the use of execute globally checkbox in custom code under actions ?

yashaswid436046
Level 2
Level 2

Want to get the knowledge for use of execute globally checkbox in custom code under actions. The info link just besides it is not working.

Any help would be highly appreciated.

1 Accepted Solution
Andrey_Osadchuk
Correct answer by
Community Advisor
Community Advisor

if you check this box, the variables become global meaning they will be available directly on the page.

For example, if your custom code is myVar=1; and the box is unchecked, this variable can't be read when you refer to it either directly from the page or later from other Launch components — execute myVar in the browser console and you will see "the variable is not defined".

With the box checked, you can read and write to it directly from the page — execute myVar in the browser console and you will see "1" returned.

View solution in original post

2 Replies
Andrey_Osadchuk
Correct answer by
Community Advisor
Community Advisor

if you check this box, the variables become global meaning they will be available directly on the page.

For example, if your custom code is myVar=1; and the box is unchecked, this variable can't be read when you refer to it either directly from the page or later from other Launch components — execute myVar in the browser console and you will see "the variable is not defined".

With the box checked, you can read and write to it directly from the page — execute myVar in the browser console and you will see "1" returned.

View solution in original post