1

I'm trying to use the RunScript Action in Final Builder and I can't seem to make any changes to variables e.g.

function OnExecute(Action, Action)

FBVariables.TestMyVariable = "42"

What am I doing wrong?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Mark 909
  • 1,825
  • 1
  • 18
  • 27
  • To be honest it was already working. Just not updating the values in the Watch window! Thanks for your help anyway. I'll vote you accepted answer for your troubles :) – Mark 909 Jun 28 '11 at 15:07

2 Answers2

2

Using VBScript you can set the FinalBuilder value directly.

MyTestVariable = "Hello World"

No need to prefix it with anything.

Robert Love
  • 12,447
  • 2
  • 48
  • 80
0

In a javascript action in FB, you can do this:

FBVariables.MyVariable = true; // or whatever

Jonesome Reinstate Monica
  • 6,618
  • 11
  • 65
  • 112