Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access FinalBuilder variables from PowerShell code

I added "Execute PowerShell Script" action to my FinalBuilder project. Manual says that I can access FinalBuilder variables using following syntax (entered in Specify Script area):

$FBVariables.GetVariable("VarName")

But the problem is $FBVariables in my case is always null, I mean following statement returns True:

$FBVariables -eq $null

I have no idea what I am doing wrong.

like image 307
Roman Avatar asked Apr 06 '26 06:04

Roman


1 Answers

$FBVariables is not available in the Execute PowerShell Script action.

You will have to use the Run Script ( or Execute Script in older versions I think) action, set language to Powershell in the Script Editor tab and here you can use #FBVariables

http://www.finalbuilder.com/Default.aspx?tabid=456&aft=9647#10952

like image 81
manojlds Avatar answered Apr 09 '26 01:04

manojlds



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!