single puzzle to call a JS function w/arguments and accept a return value?

Home Forums Bug Reports and Feature Requests single puzzle to call a JS function w/arguments and accept a return value?

This topic contains 5 replies, has 4 voices, and was last updated by Yuri Kovelenov Yuri Kovelenov 4 months, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16055
    Avatar
    jem
    Licensee

    Soft8soft Team,
    Is there a single puzzle that would allow me to call a JavaScript function with arguments and accept a return value? We currently have a puzzle that will call and pass arguments to a function in the external interface. We have a separate puzzle that will accept a call and arguments from a function in the external interface. I use both of these together when I need to call JavaScript from the puzzles and receive a return value. It is not an elegant way to write code. In my opinion, it would be convenient if we had a single puzzle that could call a function and receive a return value. This puzzle would be like the “call JS function” but it would be an output style block rather than a previous-next style block. I Photoshopped an image to explain what I am trying to describe. This block would not replace the current “call JS function” puzzle. What do you think?
    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #16057
    elk
    elk
    Licensee

    I second this suggestion, I do the same “round trip” when i need to pass a value back, so a puzzle like this would be very useful, everything that makes the puzzles less “verbose” is very welcome in my opinion.

    #16058
    Avatar
    scalare
    Licensee

    Me too! :)

    #16064
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Nice suggestion! Added a task to our dev tracker.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #17024
    Avatar
    jem
    Licensee

    Hi Soft8soft team,
    I see that this new JavaScript puzzle was added to Verge3D 2.13. Thank you very much. I tested it this morning and it works as I expect. This puzzle enabled me to eliminate some very strange JavaScript code and puzzles. I think that my puzzles and code are is much easier to understand now. Thanks!

    #17029
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Glad it helped! :good:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.