-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New extension: Javascript Events #1081
base: main
Are you sure you want to change the base?
Conversation
!update JavascriptEvents.json.zip |
Can't update the extension, as it doesn't pass automatic tests:
|
Actually, the disallowedProperty is at the extension description, no event is using it. (Other than the example file) |
In some hours I will apply a final update improving the description of the extension :) |
!update New example: |
✅ Successfully updated the extension. |
Thank you for submitting an extension. What is the purpose of this extension? |
Allow the user to quickly write javascript code between 2 specific conditions, or actions, something that normally take many unnecessary sub-events to accomplish. It also allows you to write javascript "expressions" to return a number or a string. (This is meant to be used as a replacement to writting a entire expression for a code that you will use only one or two times in the entire project.) |
Description
Adds conditions, actions and expressions to compare the return value of or run a javascript code.
How to use the extension
Adds conditions, actions and expressions to compare the return value of or run a javascript code.
How to use:
Number
to return a number out of a javascript code.String
to return a string out of a javascript code.How to evaluate the return value (of conditions and expressions):
"eventsFunctionContext.returnValue = Your return value here;"
By default, the return value is 0 or false.
Tip: use single quotes if you need to type a string:
"eventsFunctionContext.returnValue = 'myStringReturnValue'"
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
JavascriptEventsExample.zip
Extension file
JavascriptEvents.json.zip