CL generic code for this graph, this input, this button

Somewhere I’ve seen that you can start your CL with a variable like graph. And set the variable to mean “the graph on this page”.
How does that work?
Can’t figure out if it’s a sink, variable, what?

graph = graph1
graph = this.graph1
graph =…

It’s a variable. I generally write my slides with components at the top like Graph=graph1. Then k write the rest of he code referencing graph.

This just helps when you’re using the structure for multiple slides. So that way you can duplicate the slide and the only thing you have to change is the variable to find at the top instead of every instance in which the component is referred to.

1 Like