Skip to content
Discussion options

You must be logged in to vote

This is the bug in expr compilation as it can't dereference inside "if".
I created a issue to track all deref problems: #836

Workaround is to "trigger" dereferencing:

v.Enabled == nil ? 'default' : ( v.Enabled == true ? 'enabled' : 'disabled' )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by antonmedv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #828 on September 18, 2025 11:41.