Syntax editor macros
-
- UpdatedAug 1, 2024
- 1 minute read
- Xanadu
- Building applications
Syntax editor macros
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: