Forum Discussion
rraghvani
Champion Level 3
3 years agoAh ok.
Since you're using a project variable, you can just do this
Project.Variables.Var1 = "Hello World"
def update():
Log.Message(Project.Variables.Var1)
Project.Variables.Var1 = "Goodbye World"
def main():
update()
Log.Message(Project.Variables.Var1)If you run main() the following result is shown
See https://stackoverflow.com/questions/986006/how-do-i-pass-a-variable-by-reference for more information.