{}
view accessible through in your trigger’s Inspect panel. Default values will be overridden by event data (such as the text from a Slack message) that triggers your script run.output_json
key if your trigger supports it..secrets
file, located within your script folder. Your .secrets
file is fully encrypted, and the values stored within Secrets variables will not be passed to the WayScript editor, only to your script when it runs, making it the perfect place to store API keys, application credentials, and much more..env
file to store Environment variables that can be referenced by any step or function within your script. Secrets and Environment variables can be accessed through the Environment tab on your Variables panel.context
global variable, containing execution data such as the username entered on password-protected triggers, on each script run. For example, you can use the context
variable to serve a different dashboard to each of your script's users./
or ?
to check them out.Stdout
(e.g., from print or echo statements) as well as data passed through StdError
in the Log. This should make it easier to debug where errors are occurring in your script.README.md
file using standard Markdown syntax.s
will update the outputs of the selected step to reflect the latest changes. When you make a change that impacts the output of a selected step, every following step will be marked with a vim
fans out there.Key Map
- Select from a few common libraries of keyboard shortcuts to help you feel at home in the WayScript editorFont
- Choose from a few common font options for optimal code legibilityTab Size
- Pick your intended tab length (4 or 2 spaces)Insert Spaces
- Toggle whether to insert spaces after brackets or commasShow Spaces
- Toggle whether to mark spaces with the • characterShow End of Line
- Toggle whether to mark EOL with the ¬ characterUnderline Trailing Whitespace
- Toggle whether to underline trailing whitespace after code blockShow Tabs
- Toggle whether to show • characters to signify tab level() {} “” ‘’
.Cmd/Ctrl + D
: Select all instances of the selected textCmd/Ctrl + K
: Skip instance of selected textCmd/Ctrl + F
: Start searching for selected textCmd/Ctrl + G
: Find next instance of selected textShift + Cmd/Ctrl + G
: Find previous instance of selected textShift + Cmd/Ctrl + F
: Replace selected instance with new textShift+ Ctrl+ R
/ Shift + Cmd + Option + F
- Replace all instances with new textnot
and ()
to create more robust conditions in your Logic modules.<variable_name>.strip().lower()
for each string variable./<username>
. For example, you can now reference a file in Python with a reference such as, data = open(’/test_user/file.txt’).read()
200 Success
response from the HTTP Response module, while performing a long-running task on a background thread. ⌘ Command
+Z
and Redo with ⇧ Shift
+⌘ Command
+Z
Ctrl
+Z
and Redo with Ctrl
+Y
.
operator. For example, you can access the content of a particular Tweet within a list of Tweets by referencing Tweets.0.content
..
operator. For example, you can access the content of a particular Tweet within a list of Tweets by referencing Tweets.0.content
.