Is there a falsy
check?
#6635
Answered
by
ogoffart
TheColorRed
asked this question in
Q&A
-
Is there a I have a component that has an component Link inherits HorizontalLayout {
in property <string> text;
in property <image> icon;
if (icon): Image {
height: 16px;
width: 16px;
source: icon;
}
Text {
text: text;
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Oct 24, 2024
Replies: 1 comment 1 reply
-
I agree we could probably support converting image to bool.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheColorRed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I agree we could probably support converting image to bool.
Right now you can do: