Is it possible to write a full fledged Javascript function inside sandbox

Hi,
I want to include this random name generator function in macro

https://codepen.io/codebubb/pen/xBKOpb

I get the error ror in executeScript_Sandbox code: Unexpected identifier

Is it possible to include it in a macro?

Thanks
@admin/@timo/@ulrich

You can use this for random function

1 Like

Thanks a lot @newuserkantu This really helps
Do you have any idea how we can use multiple if conditions using || or $ in if_v2
Thanks

I think you can use this post there is a function with 2 conditions

parseInt ("${a}") > 5 && parseInt ("${a}") < 15

I think you can use this example.

1 Like

Thanks a lot for your help @newuserkantu