Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: var value handle #532

Merged
merged 4 commits into from
Aug 22, 2024

Conversation

hundun000
Copy link
Contributor

resolve #528
resolve #527

以及实现:

setVar:emptyText=; 预期赋值为空字符创

鉴于多处对于getValueFromState取不到都需要处理,统一包成getValueFromStateElseKey

测试用例:

setVar:zero=0;
setVar:emptyText=;
Tester:absent var shows as {absent}, zero var shows as {zero}, empty text var shows as {emptyText}.
setVar:ref_absent=absent;
setVar:ref_zero=zero;
setVar:ref_emptyText=emptyText;
Tester:ref_absent var shows as {ref_absent}, ref_zero var shows as {ref_zero}, ref_empty text var shows as {ref_emptyText}.
setVar:computed=zero + zero;
Tester:computed zero var shows as {computed}

@MakinoharaShoko MakinoharaShoko merged commit febaf4e into OpenWebGAL:dev Aug 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants