problem with storing function result in variable

Support
  • Hello there. I have a function called "Test_ID" with two parameters called "user" and "pass". In my function I use "return" and I need to store the results in a variable. I tried to do this using "Embedded Languages" module in BAS. This is how my code looks like:

    var testResult = await BAS_FUNCTION(
    "Test_ID",
    {user: [[USERNAME]], pass: [[PASSWORD]]}
    )

    However, everything stops after a URL is loaded in the "Test_ID" function. It doesn't proceed to the next lines for inputting user and pass. Therefore the "testResult" doesn't get updated.

  • In case anyone else encountered this problem. You have to edit your function and check the "has return value" box. Then your return will work. After this you have to use "Call Function" again and now you have a new field for saving results.

  • inaccessible function

    Locked Moved Support
    0 Votes
    2 Posts
    343 Views
  • 0 Votes
    3 Posts
    490 Views
  • 0 Votes
    3 Posts
    674 Views
  • Facebook Account Create Problem

    Support
    0 Votes
    5 Posts
    825 Views
  • how to save result in .txt ?

    Support
    0 Votes
    10 Posts
    3685 Views