Using the same name for Global and Local variables

Answered
0
1

Hi all,

Can I use the same name (e.g., “date”) for both a global and a local variable in the HQ? What potential issues could this cause?

Thanks!

  • You must to post comments
Best Answer
0
0

Hello tihanaM, that’s a great question!

You can create a local variable with the same name as a global variable. It will not be confusing for you to use these variables because all global variables are marked with a blue dot next to their name. Additionally, if you check the process.txt file, a local variable (e.g., “date”) will be saved as *date*, while your global variable with the same name will be saved as *date·g* ( ·g representing that it is a global variable).

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.