Skip to content

Conversation

@passchn
Copy link
Contributor

@passchn passchn commented Oct 14, 2025

This PR enables users to evaluate variables that are of type \Stringable in an if statement:

{{#if myVariable}}
  Shown when (string) $myVariable is a true-ish string.
{{/if}}

@theodorejb theodorejb changed the title Allow Stringable variables in if-Statements Allow Stringable variables in if statements Oct 14, 2025
@theodorejb theodorejb merged commit 69daae8 into devtheorem:master Oct 14, 2025
3 checks passed
@theodorejb
Copy link
Collaborator

Thank you @passchn!

@passchn
Copy link
Contributor Author

passchn commented Oct 15, 2025

Thank you for merging the PR so quickly @theodorejb :) Do you plan to tag a new version quite soon?

@theodorejb
Copy link
Collaborator

@passchn I just tagged v0.9.9!

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