[PR #184] [MERGED] Macros 2.0 Document new variable shorthands & delvar/hasvar macros #192

Closed
opened 2026-10-15 18:02:29 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SillyTavern/SillyTavern-Docs/pull/184
Author: @Wolfsblvt
Created: 1/12/2026
Status: ✅ Merged
Merged: 1/13/2026
Merged by: @Cohee1207

Base: main ← Head: macros-2.0-new-variable-shorthands


📝 Commits (3)

  • d4c59c3 Document variable shorthand operators and reorganize variable shorthand section
  • 74094a7 Add documentation for hasvar/deletevar and hasglobalvar/deleteglobalvar macros
  • 7152e6b Update descriptions for variable operators

📊 Changes

1 file changed (+148 additions, -22 deletions)

View changed files

📝 Usage/macros.md (+148 -22)

📄 Description

Docs for https://github.com/SillyTavern/SillyTavern/pull/4997

Copilot Summary

This pull request significantly expands and clarifies the documentation for variable shorthands and operators in the Usage/macros.md file. The updates provide detailed explanations, examples, and usage patterns for all supported shorthand operations, making the section much more comprehensive and user-friendly. Additionally, the legacy syntax table is updated to include missing macros for variable existence checks and deletion.

Key documentation improvements:

  • Added a comprehensive section detailing variable names, nested macros in values, whitespace handling, and all supported variable shorthand operators, including =, ++, --, +=, -=, ||, ??, ||=, ??=, ==, and !=, each with explanations and examples. [1] [2] [3] [4]
  • Clarified the rules for valid variable names and how to handle non-standard identifiers.
  • Improved section titles and organization for better readability (e.g., "Variable Shorthands Prefix Operators" to "Variable Shorthands Prefixes").

Legacy macro table updates:

  • Added hasvar, deletevar, hasglobalvar, and deleteglobalvar to the legacy macro table for completeness.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SillyTavern/SillyTavern-Docs/pull/184 **Author:** [@Wolfsblvt](https://github.com/Wolfsblvt) **Created:** 1/12/2026 **Status:** ✅ Merged **Merged:** 1/13/2026 **Merged by:** [@Cohee1207](https://github.com/Cohee1207) **Base:** `main` ← **Head:** `macros-2.0-new-variable-shorthands` --- ### 📝 Commits (3) - [`d4c59c3`](https://github.com/SillyTavern/SillyTavern-Docs/commit/d4c59c36b31991d228c3a932a2471c5f8b8df700) Document variable shorthand operators and reorganize variable shorthand section - [`74094a7`](https://github.com/SillyTavern/SillyTavern-Docs/commit/74094a7f242ac760873e393d250ef4751a0553e8) Add documentation for hasvar/deletevar and hasglobalvar/deleteglobalvar macros - [`7152e6b`](https://github.com/SillyTavern/SillyTavern-Docs/commit/7152e6b9cb895f28b4bf21b29b0ef562e860701d) Update descriptions for variable operators ### 📊 Changes **1 file changed** (+148 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `Usage/macros.md` (+148 -22) </details> ### 📄 Description Docs for https://github.com/SillyTavern/SillyTavern/pull/4997 ## Copilot Summary This pull request significantly expands and clarifies the documentation for variable shorthands and operators in the `Usage/macros.md` file. The updates provide detailed explanations, examples, and usage patterns for all supported shorthand operations, making the section much more comprehensive and user-friendly. Additionally, the legacy syntax table is updated to include missing macros for variable existence checks and deletion. Key documentation improvements: * Added a comprehensive section detailing variable names, nested macros in values, whitespace handling, and all supported variable shorthand operators, including `=`, `++`, `--`, `+=`, `-=`, `||`, `??`, `||=`, `??=`, `==`, and `!=`, each with explanations and examples. [[1]](diffhunk://#diff-2fe74f563e48c1cc4e4407e61f530ee69f9a09793dad82eecbc778a2cd512a5dL381-R431) [[2]](diffhunk://#diff-2fe74f563e48c1cc4e4407e61f530ee69f9a09793dad82eecbc778a2cd512a5dL392-R442) [[3]](diffhunk://#diff-2fe74f563e48c1cc4e4407e61f530ee69f9a09793dad82eecbc778a2cd512a5dL403-R475) [[4]](diffhunk://#diff-2fe74f563e48c1cc4e4407e61f530ee69f9a09793dad82eecbc778a2cd512a5dL425-R583) * Clarified the rules for valid variable names and how to handle non-standard identifiers. * Improved section titles and organization for better readability (e.g., "Variable Shorthands Prefix Operators" to "Variable Shorthands Prefixes"). Legacy macro table updates: * Added `hasvar`, `deletevar`, `hasglobalvar`, and `deleteglobalvar` to the legacy macro table for completeness. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 18:02:29 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/SillyTavern-Docs#192
No description provided.