Skip to main content
Solved

Passing Output Variable from Script to Another Script

  • February 2, 2023
  • 2 replies
  • 100 views

Forum|alt.badge.img+3

Hello! 

Apologies for the potentially basic question, but I was having trouble sorting through the existing documentation and I couldn't find a simple explanation. 

I'm trying to pass the output variable newCode into a new script, however I'm not sure how to define the variable before I pass it to the oldCode variable (see screenshot). Any suggestions would be appreciated!

Thanks,

Peter

Best answer by kuovonne

To use the value of an input variable in the script you must use input.config(). Look at the top of the left panel of the script editor in your screen shot. The words "Learn more" are in blue. Try clicking that for more info.

2 replies

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • 6009 replies
  • Answer
  • February 3, 2023

To use the value of an input variable in the script you must use input.config(). Look at the top of the left panel of the script editor in your screen shot. The words "Learn more" are in blue. Try clicking that for more info.


Forum|alt.badge.img+3
  • Author
  • New Participant
  • 2 replies
  • February 3, 2023

To use the value of an input variable in the script you must use input.config(). Look at the top of the left panel of the script editor in your screen shot. The words "Learn more" are in blue. Try clicking that for more info.


@kuovonne thanks! Couldn't "see the forest for the trees"...appreciate the help.