Syntax editor macros
-
- UpdatedAug 3, 2023
- 1 minute read
- Vancouver
- Building applications
The Vancouver release is no longer supported. As such, the product documentation and release notes are provided for informational purposes only, and will not be updated.
Script macros provide shortcuts for typing commonly used code. To insert macro text into a script field, enter the macro keyword followed by the Tab.
- vargr
- Inserts a standard GlideRecord query for a single value.
- Output:
- vargror
- Inserts a GlideRecord query for two values with an
OR
condition. - Output:
- Inserts a GlideRecord query for two values with an
- for
- Inserts a standard recursive loop with an array.
- Output:
- info
- Inserts a GlideSystem information message.
- Output:
- method
- Inserts a blank JavaScript function template.
- Output:
- doc
- Inserts a comment block for describing a function or parameters.
- Output: