Variables
The Variables
object which exposes variables from the flow. And you can set future variables for the flow in here
Varabiles.MyFutureVariable = 'to be used in another flow node';
// an example of variables from a 'Video Input' node
let video = Variables.vi.VideoInfo.VideoStreams[0];
// or a safe way to get that incase any of those objects are null
let video = Variables.vi?.VideoInfo?.VideoStreams[0];
if(!video)
return -1; // video was null