mirror of
https://github.com/SillyTavern/SillyTavern-Docs.git
synced 2026-10-15 18:01:56 +00:00
[PR #184] [MERGED] Macros 2.0 Document new variable shorthands & delvar/hasvar macros #192
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Docs#192
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
d4c59c3Document variable shorthand operators and reorganize variable shorthand section74094a7Add documentation for hasvar/deletevar and hasglobalvar/deleteglobalvar macros7152e6bUpdate 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.mdfile. 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:
=,++,--,+=,-=,||,??,||=,??=,==, and!=, each with explanations and examples. [1] [2] [3] [4]Legacy macro table updates:
hasvar,deletevar,hasglobalvar, anddeleteglobalvarto the legacy macro table for completeness.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.